0

Would a mandatory access control implementation administered by a 'normal' user be discretionary since the user could change permissions as he sees fit? And if so, wouldn't root as a MAC admin, being a system user who's privilege could be acquired through legitimate or illegitimate means, also make the MAC implementation discretionary?

In other words is MAC mandatory only if it is immutable? I.e. administered by the OS kernel itself?

1 Answer 1

1

You're hitting upon one of the dirty secrets of infosec: MAC and DAC are fundamentally the same thing. They both provide access control, they just have different concepts what a "user", an "administrator", and a "resource" are. There's a reason that MAC didn't become popular until the age of computers administered by people who don't actually use them themselves: on a multi-user mainframe, DAC ACLs set by root look a lot like MAC in practice.

Conversely, take an example of a state-of-the-art "pure" MAC system: Apple's seatbelt profiles, based on BSD's kernel-enforced MAC, are famously used in iOS to prevent even the owner of the device from running anything outside of a sandbox. The real permissions in this case are provided by "entitlements": XML files with a list of perms signed by Apple and included in the binary. In this system, Apple is the MAC admin. No one has a problem calling this MAC, though it looks a lot more like DAC on their own engineering models, where they sign some magic code to let them break the rules.

The real difference between MAC and DAC systems is that MAC systems typically have a more comprehensive notion of the resources to which access is controlled. DAC generally will not prevent you from opening a network socket; MAC might. MAC might prevent IPC; DAC probably won't. Allowed system calls are pretty granular in MAC, not so much under DAC.

Of course, you could get many of the same effects by partitioning programs into individual user accounts and using DAC, because MAC and DAC are fundamentally homomorphic. They just differ in which philosophies they best align with.

1
  • BTW, don't give this answer in class. There have been heavy investments in MAC, even intellectually, by people who don't want to hear that what they're doing isn't really a novel idea. And it's not like the advent of MAC has done no good either: I especially appreciate that it tends to allow granular controls of network access permissions, something certainly not possible with standard POSIX DAC. Besides, POSIX DAC isn't super expressive, and MAC solutions have seen more development in recent years. Commented Nov 13, 2015 at 16:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .