Skip to content

Commit 2333d1c

Browse files
committed
Allow shadow lock access for dpkg scripts
Some dpkg scripts call update-passwd(8), which in turn call lckpwdf(3). It is therefore expected that shadow.lock should be appropriately accessesd by this tool. Signed-off-by: Antonio Enrico Russo <[email protected]>
1 parent b6056ac commit 2333d1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

policy/modules/admin/dpkg.te

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ files_manage_non_auth_files(dpkg_script_t)
278278

279279
auth_etc_filetrans_shadow(dpkg_script_t, "shadow.upwd-write")
280280
auth_manage_shadow(dpkg_script_t)
281+
auth_filetrans_shadow_lock(dpkg_script_t)
282+
auth_rw_shadow_lock(dpkg_script_t)
281283

282284
init_all_labeled_script_domtrans(dpkg_script_t)
283285
init_use_script_fds(dpkg_script_t)

0 commit comments

Comments
 (0)