[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Questions about MAC
- Subject: Questions about MAC
- From: rwatson at freebsd.org (Robert Watson)
- Date: Wed Jan 7 12:37:23 2004
On Mon, 5 Jan 2004, Peter Pentchev wrote:
> The 'sudo echo blah >> foo' command does not succeed, since the
> redirection is attempted by my own shell still running as my own
> account, 'roam', which does not have write access to the new file; only
> the 'echo blah' command is executed with root privileges. The next
> attempt, executing a shell to perform the redirection, succeeds.
FYI, sudo hasn't been modified to set MAC labels, so if you do use sudo,
use it carefully. It might make sense to stick sudo in the base tree
someday (Apple does this with Darwin), and if so, it would be ripe for the
picking when it comes to adding MAC support.
Your diagnosis of the redirect running with the wrong label sounds correct
to me, also FYI. :-)
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert_(_at_)_fledge_(_dot_)_watson_(_dot_)_org Senior Research Scientist, McAfee Research
Visit your host, monkey.org