2 policy_module(terminal, 1.8.0)
4 ########################################
10 attribute server_ptynode;
11 attribute serial_device;
14 # bsdpty_device_t is the type of /dev/[tp]ty[abcdepqrstuvwxyz][0-9a-f]
16 dev_node(bsdpty_device_t)
19 # console_device_t is the type of /dev/console.
21 type console_device_t;
22 dev_node(console_device_t)
25 # devpts_t is the type of the devpts file system and
26 # the type of the root directory of the file system.
29 files_mountpoint(devpts_t)
30 fs_associate_tmpfs(devpts_t)
32 fs_use_trans devpts gen_context(system_u:object_r:devpts_t,s0);
35 # devtty_t is the type of /dev/tty.
39 mls_trusted_object(devtty_t)
42 # ptmx_t is the type for /dev/ptmx.
46 mls_trusted_object(ptmx_t)
47 allow ptmx_t devpts_t:filesystem associate;
50 # tty_device_t is the type of /dev/*tty*
52 type tty_device_t, serial_device;
53 dev_node(tty_device_t)
56 # usbtty_device_t is the type of /dev/usr/tty*
58 type usbtty_device_t, serial_device;
59 dev_node(usbtty_device_t)