anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
923a60
From 3b2d089812cb540456f3b93aa5e3a95df6a66778 Mon Sep 17 00:00:00 2001
923a60
From: Lukas Nykryn <lnykryn@redhat.com>
923a60
Date: Tue, 22 Sep 2015 12:28:28 +0200
923a60
Subject: [PATCH] udev-rules: prandom character device node permissions
923a60
923a60
rhel-only
923a60
Resolves: #1264112
923a60
---
923a60
 rules/40-redhat.rules | 3 +++
923a60
 1 file changed, 3 insertions(+)
923a60
923a60
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
923a60
index 305e752285..9a48adde19 100644
923a60
--- a/rules/40-redhat.rules
923a60
+++ b/rules/40-redhat.rules
923a60
@@ -11,3 +11,6 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/sys
923a60
 
923a60
 # load SCSI generic (sg) driver
923a60
 SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"
923a60
+
923a60
+# Rule for prandom character device node permissions
923a60
+KERNEL=="prandom", MODE="0644"