diff options
author | pjd <pjd@FreeBSD.org> | 2011-02-03 10:37:44 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-02-03 10:37:44 +0000 |
commit | c7493a8a8581e0ac1368ee3781fd6d716baba105 (patch) | |
tree | a09b71e112776409a762687068d2d06332daa909 | |
parent | 11926ca84d4e893ce66f67b945840ccb9540a3cb (diff) | |
download | FreeBSD-src-c7493a8a8581e0ac1368ee3781fd6d716baba105.zip FreeBSD-src-c7493a8a8581e0ac1368ee3781fd6d716baba105.tar.gz |
Let the caller log info about successful privilege drop.
We don't want to log this in hastctl.
MFC after: 1 week
-rw-r--r-- | sbin/hastd/primary.c | 1 | ||||
-rw-r--r-- | sbin/hastd/secondary.c | 1 | ||||
-rw-r--r-- | sbin/hastd/subr.c | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index a82a007..656ead9 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -850,6 +850,7 @@ hastd_primary(struct hast_resource *res) cleanup(res); exit(EX_CONFIG); } + pjdlog_info("Privileges successfully dropped."); /* * Create the guard thread first, so we can handle signals from the diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index b19bb95..12a68de 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -414,6 +414,7 @@ hastd_secondary(struct hast_resource *res, struct nv *nvin) if (drop_privs() != 0) exit(EX_CONFIG); + pjdlog_info("Privileges successfully dropped."); /* * Create the control thread before sending any event to the parent, diff --git a/sbin/hastd/subr.c b/sbin/hastd/subr.c index ae16975..24d6dd5 100644 --- a/sbin/hastd/subr.c +++ b/sbin/hastd/subr.c @@ -184,7 +184,5 @@ drop_privs(void) PJDLOG_VERIFY(getgroups(1, gidset) == 1); PJDLOG_VERIFY(gidset[0] == pw->pw_gid); - pjdlog_info("Privileges successfully dropped."); - return (0); } |