projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upstream removed this so we don't need to
[debian/amanda]
/
common-src
/
rsh-security.c
diff --git
a/common-src/rsh-security.c
b/common-src/rsh-security.c
index 4d14f3bdfaa3755a0d715794802b340213e360ef..f1fa2a8076a68a9954457f3c0b91a4887e848cbe 100644
(file)
--- a/
common-src/rsh-security.c
+++ b/
common-src/rsh-security.c
@@
-37,11
+37,9
@@
#include "util.h"
#include "event.h"
#include "packet.h"
#include "util.h"
#include "event.h"
#include "packet.h"
-#include "queue.h"
#include "security.h"
#include "security-util.h"
#include "stream.h"
#include "security.h"
#include "security-util.h"
#include "stream.h"
-#include "version.h"
/*
* Path to the rsh binary. This should be configurable.
/*
* Path to the rsh binary. This should be configurable.
@@
-78,6
+76,7
@@
const security_driver_t rsh_security_driver = {
"RSH",
rsh_connect,
sec_accept,
"RSH",
rsh_connect,
sec_accept,
+ sec_get_authenticated_peer_name_hostname,
sec_close,
stream_sendpkt,
stream_recvpkt,
sec_close,
stream_sendpkt,
stream_recvpkt,
@@
-230,11
+229,13
@@
runrsh(
return (0);
}
return (0);
}
+ /* drop root privs permanently */
+ set_root_privs(-1);
+
safe_fd(-1, 0);
if(!xamandad_path || strlen(xamandad_path) <= 1)
safe_fd(-1, 0);
if(!xamandad_path || strlen(xamandad_path) <= 1)
- xamandad_path = vstralloc(amlibexecdir, "/", "amandad",
- versionsuffix(), NULL);
+ xamandad_path = vstralloc(amlibexecdir, "/", "amandad", NULL);
if(!xclient_username || strlen(xclient_username) <= 1)
xclient_username = CLIENT_LOGIN;
if(!xclient_username || strlen(xclient_username) <= 1)
xclient_username = CLIENT_LOGIN;