aboutsummaryrefslogblamecommitdiffstats
path: root/mydictdaddon.te
blob: 76c2a143f11d8268a5f1ff2b4135ced6876342cf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                        
policy_module(mydictdaddon,1.0.2)
gen_require(` type dictd_t; ')
gen_require(` attribute userdomain; ')
userdom_search_user_home_dirs(dictd_t)
type dictd_home_t;
userdom_user_home_content(dictd_home_t)
allow dictd_t dictd_home_t:dir list_dir_perms;
allow dictd_t dictd_home_t:file read_file_perms;
allow dictd_t dictd_home_t:lnk_file read_lnk_file_perms;;
allow userdomain dictd_home_t:dir manage_dir_perms;
allow userdomain dictd_home_t:file manage_file_perms;
allow userdomain dictd_home_t:lnk_file manage_lnk_file_perms;
userdom_user_home_dir_filetrans(userdomain, dictd_home_t, dir, ".dictd")