I would like to know that there is or is not a way to prevent users from executing binaries that are not owned by root or that the user is in a particular group. Is this something I can achieve with TrustedBSD's MAC framework?
1 set the noexec mount option on any filesystem that you don't want executanles running on. 2 use acls to prevent execution of files, the bsd Mac framework is the way to go Ie remove executable bit on all files for everyone and leave hoe owner and group then add users to the necessary groups Only issue is monitoring newly created files and the bits set, default umask can help Regards Daniel Regards Daniel On 3/2/09, Paige Thompson <erratic@devel.ws> wrote:> I would like to know that there is or is not a way to prevent users from > executing binaries that are not owned by root or that the user is in a > particular group. Is this something I can achieve with TrustedBSD's MAC > framework? > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org" >-- Sent from my mobile device http://buymeahouse.stiw.org/
On Sun, 1 Mar 2009, Paige Thompson wrote:> I would like to know that there is or is not a way to prevent users from > executing binaries that are not owned by root or that the user is in a > particular group. Is this something I can achieve with TrustedBSD's MAC > framework?Hi Paige-- The ugidfw(8) file system firewall, and mac_bsdextended(4) kernel module it depends on, can be used to limit what binaries can be executed. However, be aware that this may not affect memory mapping of shared libraries on platforms where there are not seperate read/execute bits, such as on i386. You may want to combine this with the noexec flag, which our runtime linker is aware of and assists in enforcing for shared libraries. Robert N M Watson Computer Laboratory University of Cambridge