diff mbox series

[v2,1/4] refpolicy: update to c89bd1537

Message ID 20261122061122.2042600-2-chenqi_hycx@cetc.com.cn
State New
Headers show
Series meta-selinux: fix systemd 262 denials and run the SELinux tests on every variant | expand

Commit Message

Chen Qi Nov. 22, 2026, 6:11 a.m. UTC
From: Chen Qi <chenqi_hycx@cetc.com.cn>

Bump to latest for the systemd 262 fixes and for the shadow lock
rework.

systemd 262, for the services and paths that it added:
```
d6ef7f26b systemd: let the user manager getattr clock devices
98421e290 systemd: allow systemd-coredumpd to start
c89e5d936 systemd: give /run/sysctl.d its own type
b88bdf4fe systemd: let user systemd-tmpfiles read /usr
8c2498a23 ntp: let systemd-timesyncd read the IPv6 sysctls
13afa2496 systemd: allow varlink socket xattr access
c9085fb7c logging: grant journald access to /run/systemd/units
```

shadow lock (upstream PR #1280):
```
fd41cadd0 authlogin: create a bundle interface for shadow + shadow lock
8e880a6af init: allow creating the shadow lock
aead3a373 authlogin: create an interface to create the shadow lock
c8a588f58 authlogin: split file transitions out of auth_rw_shadow_lock
eca17962e authlogin: separate auth_rw_shadow_lock from auth_manage_shadow
```
auth_rw_shadow_lock() no longer declares the file transitions, so
auth_change_shadow_passwords() can grant create on .pwd.lock, passwd.lock
and group.lock together with the read/write it already gave, and its
callers are moved over; chfn gets create on its own.

others:
```
71a73d9c9 sudo: prevent SELinux denial after console login
2c5e71180 fapolicyd: ptrace permission for user namespace
6d89b2abe fapolicyd: Updates for fapolicyd v2.0.1
19f69c48e fapolicyd: set default context for /etc/fapolicyd/compiled.rules.prev
```

Refresh 0040: upstream added a /run/sysctl.d entry to systemd.fc, which
shifted the context of its hunk.

Assisted-by: Codewhale:deepseek-v4-flash
Signed-off-by: Chen Qi <chenqi_hycx@cetc.com.cn>
---
 ...main-used-for-login-program-to-conne.patch | 20 +++++++++----------
 recipes-security/refpolicy/refpolicy_git.inc  |  2 +-
 2 files changed, 10 insertions(+), 12 deletions(-)
diff mbox series

Patch

diff --git a/recipes-security/refpolicy/refpolicy/0040-systemd-allow-domain-used-for-login-program-to-conne.patch b/recipes-security/refpolicy/refpolicy/0040-systemd-allow-domain-used-for-login-program-to-conne.patch
index 46d3046..e4f0c08 100644
--- a/recipes-security/refpolicy/refpolicy/0040-systemd-allow-domain-used-for-login-program-to-conne.patch
+++ b/recipes-security/refpolicy/refpolicy/0040-systemd-allow-domain-used-for-login-program-to-conne.patch
@@ -1,7 +1,8 @@ 
-From f94cd726509a88f8efd72b175fe3079544e9ef26 Mon Sep 17 00:00:00 2001
+From 03f2558a168c4ff3fa879774d7cb416bcc991225 Mon Sep 17 00:00:00 2001
 From: Yi Zhao <yi.zhao@windriver.com>
 Date: Fri, 6 Feb 2026 22:13:03 +0800
 Subject: [PATCH] systemd: allow domain used for login program to connect to
+
  systemd-logind over unix socket
 
 Fix the following AVC denials:
@@ -25,10 +26,10 @@  Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
  3 files changed, 22 insertions(+)
 
 diff --git a/policy/modules/system/authlogin.if b/policy/modules/system/authlogin.if
-index 82d3f6684..db1fcc344 100644
+index 5add629ac..6518f230e 100644
 --- a/policy/modules/system/authlogin.if
 +++ b/policy/modules/system/authlogin.if
-@@ -230,6 +230,7 @@ interface(`auth_login_pgm_domain',`
+@@ -233,6 +233,7 @@ interface(`auth_login_pgm_domain',`
  		systemd_read_logind_state($1)
  		systemd_write_inherited_logind_sessions_pipes($1)
  		systemd_use_passwd_agent_fds($1)
@@ -37,7 +38,7 @@  index 82d3f6684..db1fcc344 100644
  ')
  
 diff --git a/policy/modules/system/systemd.fc b/policy/modules/system/systemd.fc
-index 505a054ff..e44d82a88 100644
+index dacf27a49..6622a1c74 100644
 --- a/policy/modules/system/systemd.fc
 +++ b/policy/modules/system/systemd.fc
 @@ -127,6 +127,7 @@ HOME_ROOT/.+\.home	--	gen_context(system_u:object_r:systemd_homed_storage_t,s0)
@@ -46,13 +47,13 @@  index 505a054ff..e44d82a88 100644
  /run/systemd/io\.systemd\.NamespaceResource	-s	gen_context(system_u:object_r:systemd_nsresourced_runtime_t,s0)
 +/run/systemd/io\.systemd\.Login	-s	gen_context(system_u:object_r:systemd_logind_runtime_t,s0)
  
- /run/tmpfiles\.d	-d	gen_context(system_u:object_r:systemd_tmpfiles_conf_t,s0)
- /run/tmpfiles\.d/.*		<<none>>
+ /run/sysctl\.d(/.*)?	gen_context(system_u:object_r:systemd_sysctl_runtime_t,s0)
+ 
 diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if
-index b67b78a69..cc57a29f4 100644
+index 3231f5c82..777376536 100644
 --- a/policy/modules/system/systemd.if
 +++ b/policy/modules/system/systemd.if
-@@ -1601,6 +1601,26 @@ interface(`systemd_inherit_logind_fds',`
+@@ -1679,6 +1679,26 @@ interface(`systemd_inherit_logind_fds',`
  	allow systemd_logind_t $1:fd use;
  ')
  
@@ -79,6 +80,3 @@  index b67b78a69..cc57a29f4 100644
  ######################################
  ## <summary>
  ##      Watch logind sessions dirs.
--- 
-2.34.1
-
diff --git a/recipes-security/refpolicy/refpolicy_git.inc b/recipes-security/refpolicy/refpolicy_git.inc
index 67a727b..06b5b62 100644
--- a/recipes-security/refpolicy/refpolicy_git.inc
+++ b/recipes-security/refpolicy/refpolicy_git.inc
@@ -2,7 +2,7 @@  PV = "2.20260922+git"
 
 SRC_URI = "git://github.com/SELinuxProject/refpolicy.git;protocol=https;branch=main;name=refpolicy;destsuffix=refpolicy"
 
-SRCREV_refpolicy = "8f247dafb92bd12cbfb53a11ff58be17a88df86a"
+SRCREV_refpolicy = "c89bd1537a63c4a332945897fa34bed81f2921a3"
 
 UPSTREAM_CHECK_GITTAGREGEX = "RELEASE_(?P<pver>\d+_\d+)"