LWN.net Logo

Systemd gets seccomp filter support

Systemd gets seccomp filter support

Posted Jul 17, 2012 21:39 UTC (Tue) by scientes (guest, #83068)
In reply to: Systemd gets seccomp filter support by sztanpet
Parent article: Systemd gets seccomp filter support

And just to make it clear. In order to use seccomp 2 as non-root, you need to first call No New Privs, this is why the seccomp feature implies no new privs, but you can set no new privs off if you really know what you are doing. (are are launching from the main systemd process that is root, and not a user-session systemd)


(Log in to post comments)

Systemd gets seccomp filter support

Posted Jul 20, 2012 0:36 UTC (Fri) by luto (subscriber, #39314) [Link]

You don't need to be root to use PR_SET_NO_NEW_PRIVS.

Note that setting this is likely to defeat any selinux protections on the service (if any) -- until selinux adds some magic restrict-only mode and makes it work with no_new_privs, privilege transitions on exec won't happen.

systemd could get fancy and do the selinux transition itself, I suppose.

Take a look at the shiny docs in Documentation/prctl/no_new_privs.txt

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds