Language and Page Formatting Options
49.7.4. Object Classes and Permissions
SELinux defines a number of classes for objects, making it easier to group certain permissions by specific classes. For example:
- File-related classes include
filesystemfor file systems,
filefor files, and
dirfor directories. Each class has its own associated set of permissions.The
filesystemclass can mount, unmount, get attributes, set quotas, relabel, and so forth. The
fileclass has common file permissions such as read, write, get and set attributes, lock, relabel, link, rename, append, etc.
- Network related classes include
tcp_socketfor TCP sockets,
netiffor network interfaces, and
nodefor network nodes.The
netifclass, for example, can send and receive on TCP, UDP and raw sockets (
The object classes have matching declarations in the kernel, meaning that it is not trivial to add or change object class details. The same is true for permissions. Development work is ongoing to make it possible to dynamically register and unregister classes and permissions.
Permissions are the actions that a subject can perform on an object, if the policy allows it. These permissions are the access requests that SELinux actively allows or denies.