1 policy_module(terminal, 1.9.2)
3 ########################################
9 attribute server_ptynode;
10 attribute serial_device;
13 # bsdpty_device_t is the type of /dev/[tp]ty[abcdepqrstuvwxyz][0-9a-f]
15 dev_node(bsdpty_device_t)
18 # console_device_t is the type of /dev/console.
20 type console_device_t;
21 dev_node(console_device_t)
24 # devpts_t is the type of the devpts file system and
25 # the type of the root directory of the file system.
28 files_mountpoint(devpts_t)
29 fs_associate_tmpfs(devpts_t)
31 fs_use_trans devpts gen_context(system_u:object_r:devpts_t,s0);
32 dev_associate(devpts_t)
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)
62 # virtio_device_t is the type of /dev/vport[0-9]p[0-9]
64 type virtio_device_t, serial_device;
65 dev_node(virtio_device_t)