You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: write-ups_unpublished/LSM_apparmor_selinux.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,25 @@ Example: \
104
104
The boolean 'allow_ftpd_anon_write'[3] modifies the policy for ftpd to allow so-called anonymous users to write to disk. This is achieved with the _type_ 'public_content_rw_t' (to put it simply: like a special file permission), which is applied to files or directories that the anonymous user should have access to.
105
105
As the application (ftpd) itself is not aware of SELinux, SELinux bases this on the process and file _types_. _**TODO:** question, how does SELinux correctly identify that the FTP user writing is anonymous?_
106
106
-**Domain**: processes (to put it simply: processes run in domains and are thereby separated from each other and can be granted different permissions)
107
-
-**Macros**: ...similar to macros in programming... [6]
107
+
-**Macros**: ...similar to macros in programming... [6]\
108
+
-**Type attributes**: A grouping of multiple types and can be referenced in the same way (example below)
109
+
110
+
```bash
111
+
# Minor example, a bit out of context: Domains, types, type attributes
112
+
113
+
# Give some types the attribute of file_type.
114
+
# Then grant access to a domain (some_domain) to read all files with those types
115
+
# (i.e. types included in the file_type type attribute, which to reiterate is a collection of types)
0 commit comments