terminal: /dev/pts exists in /dev filesystem

systemd tries to create /dev/pts directly with its context type
"devpts_t", but this is not allowed:

    avc:  denied  { associate } for  pid=1 comm="systemd" name="pts"
    scontext=system_u:object_r:devpts_t
    tcontext=system_u:object_r:device_t
    tclass=filesystem permissive=1
This commit is contained in:
Nicolas Iooss via refpolicy 2017-08-12 10:34:59 +02:00 committed by Chris PeBenito
parent f23e6ee79c
commit 69d400af3b
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ dev_node(console_device_t)
# the type of the root directory of the file system. # the type of the root directory of the file system.
# #
type devpts_t; type devpts_t;
dev_associate(devpts_t)
files_mountpoint(devpts_t) files_mountpoint(devpts_t)
fs_associate_tmpfs(devpts_t) fs_associate_tmpfs(devpts_t)
fs_xattr_type(devpts_t) fs_xattr_type(devpts_t)