setusercontext(3) conflicts with rc.d framework
This commit is contained in:
parent
c6e00b99fc
commit
4c0746156e
5
icbd.c
5
icbd.c
@ -33,7 +33,6 @@
|
||||
#include <sysexits.h>
|
||||
#include <syslog.h>
|
||||
#include <pwd.h>
|
||||
#include <login_cap.h>
|
||||
#include <locale.h>
|
||||
#include <ctype.h>
|
||||
#include <netdb.h>
|
||||
@ -472,10 +471,6 @@ icbd_restrict(void)
|
||||
exit(EX_NOUSER);
|
||||
}
|
||||
|
||||
if (setusercontext(NULL, pw, pw->pw_uid,
|
||||
LOGIN_SETALL & ~LOGIN_SETUSER) < 0)
|
||||
exit(EX_NOPERM);
|
||||
|
||||
if (stat(pw->pw_dir, &sb) == -1) {
|
||||
syslog(LOG_ERR, "%s: %m", pw->pw_name);
|
||||
exit(EX_NOPERM);
|
||||
|
Loading…
x
Reference in New Issue
Block a user