Last change
on this file since 1803 was
94,
checked in by presbrey, 18 years ago
|
admof (locker admin check) strict SELinux module
|
File size:
1.0 KB
|
Line | |
---|
1 | # Joe Presbrey |
---|
2 | # presbrey@mit.edu |
---|
3 | # 2006/1/15 |
---|
4 | |
---|
5 | policy_module(admof,1.0.0) |
---|
6 | |
---|
7 | require { |
---|
8 | type sshd_t, sshd_tmp_t, proc_t; |
---|
9 | }; |
---|
10 | |
---|
11 | type admof_t; |
---|
12 | type admof_exec_t; |
---|
13 | role system_r types admof_t; |
---|
14 | domain_type(admof_t) |
---|
15 | domain_auto_trans(sshd_t,admof_exec_t,admof_t) |
---|
16 | domain_entry_file(admof_t, admof_exec_t) |
---|
17 | files_read_etc_files(admof_t) |
---|
18 | libs_use_ld_so(admof_t) |
---|
19 | libs_use_shared_libs(admof_t) |
---|
20 | miscfiles_read_localization(admof_t) |
---|
21 | |
---|
22 | allow admof_t sshd_t:fd use; |
---|
23 | allow admof_t sshd_t:fifo_file write; |
---|
24 | allow admof_t sshd_t:tcp_socket { read write }; |
---|
25 | allow admof_t sshd_tmp_t:file all_file_perms; |
---|
26 | allow admof_t sshd_t:process sigchld; |
---|
27 | allow admof_t self:fifo_file { getattr ioctl read write }; |
---|
28 | allow admof_t proc_t:file { getattr read }; |
---|
29 | |
---|
30 | dev_read_urand(admof_t) |
---|
31 | corecmd_exec_all_executables(admof_t) |
---|
32 | |
---|
33 | allow sshd_t admof_exec_t:file rx_file_perms; |
---|
34 | |
---|
35 | require { type afs_t; }; |
---|
36 | |
---|
37 | afs_access(admof_t) |
---|
38 | allow afs_t admof_t:fifo_file { getattr write }; |
---|
39 | allow afs_t sshd_t:fifo_file write; |
---|
40 | allow afs_t sshd_t:tcp_socket { read write }; |
---|
41 | allow afs_t sshd_tmp_t:file { read write }; |
---|
Note: See
TracBrowser
for help on using the repository browser.