Questions tagged [lsm]
Linux Security Modules (LSM) is a framework that allows the Linux kernel to support a variety of computer security models while avoiding favoritism toward any single security implementation.
19 questions
0 votes
0 answers
56 views
Prevent a program from writing the HOME directory using SMACK
I have a binary program that creates an empty folder in the HOME directory everytime it starts up. I don't like that and want to use the SMACK mechanism to stop it from doing that. My idea is to label ...
0 votes
1 answer
238 views
Setting file contexts on /proc files
I want to restrict access to files in /proc as much as possible using SELinux. When I try to chcon a directory in /proc, it fails: $ chcon -t staff_proc_t /proc/acpi chcon: failed to change context of ...
1 vote
1 answer
1k views
Interception syscalls and make change in their arguments
I'm interested to write a kernel program that can have all possible controls on syscalls, such as intersection, filtering, and make changes in their arguments. I look up for two goals: read system ...
3 votes
1 answer
534 views
Are LSM tools such as AppArmor and SELinux considered IDS/IPS? [closed]
I know this is kind of an odd question. An IDS/IPS basically autonomously recognizes and optionally prevents intrusions. And while SELinux and AppArmor seem to be trying to do the same, they are never ...
0 votes
0 answers
57 views
Is it possible to modify output of read event by other process?
I want to intercept event and then modify output. So main question not about how to get notification about event, but how to modify output. Example Content of file.txt Current user is When some ...
1 vote
1 answer
1k views
SELinux vs AppArmor applicability
I am going through some primers on LSM implementations so eventually I am digging a bit into AppArmor and SELinux. I am aware of this discussion but this does not make very clear one question I am ...
14 votes
1 answer
19k views
Core difference between SELinux and Apparmor
What is the core [or kernel level] difference of SELinux and Apparmor?
1 vote
1 answer
865 views
Is it MAC or DAC
I am having trouble seeing the utility or use of the LSM attribute/caps implementations. I've put together a pseudo code snippet of sorts to try to express my concern and question. It's modeled ...