What is the principle of least privilege, and how does the OS enforce it using Access Control Lists or capabilities?
Last updated
Least privilege: each process or user gets only the minimum permissions it needs, limiting damage from bugs or compromise.
ACLs are object-centric: each file/resource lists who may do what (e.g.
rwx), and the OS checks the requester on access. Used by Unix permissions and Windows ACLs.Capabilities are subject-centric unforgeable tokens naming an object and allowed operations, easy to delegate but hard to revoke. Linux
capabilities(7)split root's power into fine-grained rights.