Update to latest ncmlib privilege.[ch].

This commit is contained in:
Nicholas J. Kain 2014-04-05 05:23:18 -04:00
parent 09d6f7dfb8
commit ef51971a6d
3 changed files with 4 additions and 5 deletions

View File

@ -406,8 +406,7 @@ void ifch_main(void)
nk_set_chroot(chroot_dir);
memset(chroot_dir, '\0', sizeof chroot_dir);
nk_set_capability("cap_net_admin=ep");
nk_set_uidgid(ifch_uid, ifch_gid);
nk_set_uidgid(ifch_uid, ifch_gid, "cap_net_admin=ep");
do_ifch_work();
}

View File

@ -441,7 +441,7 @@ static void ndhc_main(void) {
nk_set_chroot(chroot_dir);
memset(chroot_dir, '\0', sizeof chroot_dir);
nk_set_uidgid(ndhc_uid, ndhc_gid);
nk_set_uidgid(ndhc_uid, ndhc_gid, NULL);
if (cs.ifsPrevState != IFS_UP)
ifchange_deconfig(&cs);

View File

@ -504,8 +504,8 @@ void sockd_main(void)
setup_signals_sockd();
nk_set_chroot(chroot_dir);
memset(chroot_dir, 0, sizeof chroot_dir);
nk_set_capability("cap_net_bind_service,cap_net_broadcast,cap_net_raw=ep");
nk_set_uidgid(sockd_uid, sockd_gid);
nk_set_uidgid(sockd_uid, sockd_gid,
"cap_net_bind_service,cap_net_broadcast,cap_net_raw=ep");
do_sockd_work();
}