Skip to content

Instantly share code, notes, and snippets.

@lemenkov
Created March 23, 2024 10:45
Show Gist options
  • Save lemenkov/0e17b9ea4d2b58687669238df1e307a1 to your computer and use it in GitHub Desktop.
Save lemenkov/0e17b9ea4d2b58687669238df1e307a1 to your computer and use it in GitHub Desktop.
benoitb.te
module benoitb 1.0;
require {
type user_home_t;
type init_t;
class file { execute execute_no_trans ioctl map open read };
class lnk_file read;
}
#============= init_t ==============
allow init_t user_home_t:file { execute execute_no_trans ioctl open read };
#!!!! This avc can be allowed using the boolean 'domain_can_mmap_files'
allow init_t user_home_t:file map;
allow init_t user_home_t:lnk_file read;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment