From 4e0e74ed95958c5acf59c5c07fa7e3648f71f34e Mon Sep 17 00:00:00 2001
From: Stephen Smalley <sds@tycho.nsa.gov>
Date: Wed, 3 Apr 2013 16:35:57 -0400
Subject: [PATCH] Allow ueventd to relabel sysfs nodes.

Required for If8b8d66120453123c1371ce063b6f20e8b96b6ef .

Change-Id: I98871b957db8b291cbbb827b5eb39b4279ce4194
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
 ueventd.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ueventd.te b/ueventd.te
index 1e5a79716..f765cc565 100644
--- a/ueventd.te
+++ b/ueventd.te
@@ -10,6 +10,7 @@ allow ueventd device:file create_file_perms;
 allow ueventd device:chr_file rw_file_perms;
 allow ueventd sysfs:file rw_file_perms;
 allow ueventd sysfs:file setattr;
+allow ueventd sysfs_type:file { relabelfrom relabelto };
 allow ueventd tmpfs:chr_file rw_file_perms;
 allow ueventd dev_type:dir create_dir_perms;
 allow ueventd dev_type:lnk_file { create unlink };
-- 
GitLab