Skip to content

Support /run/* creation for initrc_t

Christopher J. PeBenito selinux-refpolicy 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest0 of 4 patches 0 repliesNew

Patches in v4 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v4 thread

Cover letter [refpolicy] [PATCH v4 0/4] Support /run/* creation for initrc_t
Quoted 5 lines · Sven Vermeulen

Due to the introduction of /run, many init scripts need to create the daemon run dirs (such as /run/udev for the udev init script). To simplify this, we introduce the "daemonrundir" attribute to which initrc_t has the necessary create_dirs_perms granted.

Quoted 8 lines

Changes since v3
----------------

- Add in setattr rights towards the daemonrundir types for initrc_t
- Add in a couple of more identified domains that need this
- Remove deprecation of previous functions, they are not used anymore, but not deprecated. The referred alternative (init_daemon_run_dir) is only when the methods were called for initrc_t.

This set merged. It think one minor additional tweak would have init_daemon_run_dir() to call files_pid_file() since the former is a subset of the latter.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com