mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-14 15:08:50 +00:00
Exit newrole if capabilities can't be dropped
Signed-off-by: Steve Lawrence <slawrence@tresys.com>
This commit is contained in:
parent
16d1c1cbe5
commit
cba027c249
@ -1274,7 +1274,9 @@ int main(int argc, char *argv[])
|
||||
goto err_close_pam_session;
|
||||
#endif
|
||||
|
||||
drop_capabilities(TRUE);
|
||||
if (drop_capabilities(TRUE))
|
||||
goto err_close_pam_session;
|
||||
|
||||
/* Handle environment changes */
|
||||
if (restore_environment(preserve_environment, old_environ, &pw)) {
|
||||
fprintf(stderr, _("Unable to restore the environment, "
|
||||
|
Loading…
Reference in New Issue
Block a user