Fix selinux denials when applying updates in recovery.
These lines are copied from update_engine.te, and are needed to update dynamic partitions in recovery. Bug: 132943965 Test: sideload OTA on cuttlefish Change-Id: Id03a658aac69b8d20fa7bb758530a4469c75cf9c Merged-In: Id03a658aac69b8d20fa7bb758530a4469c75cf9c
This commit is contained in:
parent
676d9590f4
commit
115aafa7ab
@ -138,6 +138,10 @@ recovery_only(`
|
|||||||
# This line seems suspect, as it should not really need to
|
# This line seems suspect, as it should not really need to
|
||||||
# set scheduling parameters for a kernel domain task.
|
# set scheduling parameters for a kernel domain task.
|
||||||
allow recovery kernel:process setsched;
|
allow recovery kernel:process setsched;
|
||||||
|
|
||||||
|
# These are needed to update dynamic partitions in recovery.
|
||||||
|
r_dir_file(recovery, sysfs_dm)
|
||||||
|
allowxperm recovery super_block_device_type:blk_file ioctl { BLKIOMIN BLKALIGNOFF };
|
||||||
')
|
')
|
||||||
|
|
||||||
###
|
###
|
||||||
|
@ -138,6 +138,10 @@ recovery_only(`
|
|||||||
# This line seems suspect, as it should not really need to
|
# This line seems suspect, as it should not really need to
|
||||||
# set scheduling parameters for a kernel domain task.
|
# set scheduling parameters for a kernel domain task.
|
||||||
allow recovery kernel:process setsched;
|
allow recovery kernel:process setsched;
|
||||||
|
|
||||||
|
# These are needed to update dynamic partitions in recovery.
|
||||||
|
r_dir_file(recovery, sysfs_dm)
|
||||||
|
allowxperm recovery super_block_device_type:blk_file ioctl { BLKIOMIN BLKALIGNOFF };
|
||||||
')
|
')
|
||||||
|
|
||||||
###
|
###
|
||||||
|
Loading…
Reference in New Issue
Block a user