Skip to content

Support /run/* creation for initrc_t

Sven Vermeulen selinux-refpolicy 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v33 patches 0 repliesSuperseded

Changes in v4 from the cover letter

----------------

- 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.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Introduce init_daemon_run_dir transformationpolicy/modules/system/init.if policy/modules/system/init.te+33 -00 replies
2/4Use the init_daemon_run_dir interface for udevpolicy/modules/system/init.te policy/modules/system/udev.te+1 -10 replies
3/4Allow initrc_t to create run dirs for core modulespolicy/modules/services/postgresql.te+1 -00 replies
4/4Allow initrc_t to create run dirs for contrib modulesasterisk.te consolekit.te dbus.te +3 more+6 -01 reply
4/4Allow initrc_t to create run dirs for contrib modules+0 -00 replies

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

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.

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.