Skip to content

initscripts/devpts.sh: fix context for /dev/pts

[email protected] yocto 1 version Applied

Status from this message: Merged, thanks. :)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2initscripts: add a local copy of devpts.shrecipes-core/initscripts/initscripts/devpts.sh recipes-core/initscripts/initscripts_1.0.bbappend+30 -00 replies
2/2initscripts/devpts.sh: fix context for /dev/ptsrecipes-core/initscripts/initscripts/devpts.sh+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [meta-selinux][PATCH 0/2] initscripts/devpts.sh: fix context for /dev/pts

From: Wenzong Fan <[email protected]>

devpts use file_use_trans to allocate security contexts. As there are no range_trans rules for initrc_t mounting devpts, the security level of mountpoint will be derived from the initrc process, to be systemhigh (s15:c0.c1023), instead of expected systemlow(s0).

This will block login shells to search PTYs, so use restorecon to fix this.

The following changes since commit 368f65a475069ed384d82be09c2515fb765e22ec:

initscripts/checkroot.sh: restore file contexts for /run (2014-05-09 08:59:54 -0400)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib wenzong/fix-pts
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/fix-pts

Wenzong Fan (2):
initscripts: add a local copy of devpts.sh
initscripts/devpts.sh: fix context for /dev/pts

 recipes-core/initscripts/initscripts/devpts.sh    |   29 +++++++++++++++++++++
 recipes-core/initscripts/initscripts_1.0.bbappend |    2 ++
 2 files changed, 31 insertions(+)
 create mode 100755 recipes-core/initscripts/initscripts/devpts.sh
Signature · 1 line
1.7.9.5