sweet: sepolicy: Address more battery secret denials

[   19.924855] type=1400 audit(1617105165.784:140): avc: denied { getattr } for comm="batterysecret" path="/dev/kmsg" dev="tmpfs" ino=12292 scontext=u:r:batterysecret:s0 tcontext=u:object_r:kmsg_device:s0 tclass=chr_file permissive=0

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
Change-Id: Icee6cc5f3dfc84864d0bb9bb8af59731f33d64be
This commit is contained in:
Adithya R 2021-12-03 16:30:44 +05:30 committed by basamaryan
parent 7c4b20bb8b
commit c1b697fec7
No known key found for this signature in database
GPG Key ID: 707BA6C82329E8F9

View File

@ -27,7 +27,7 @@ allow batterysecret {
vendor_sysfs_usbpd_device
}:file w_file_perms;
allow batterysecret kmsg_device:chr_file w_file_perms;
allow batterysecret kmsg_device:chr_file rw_file_perms;
allow batterysecret self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;