David Anderson | fe30369 | 2020-10-19 22:11:29 -0700 | [diff] [blame^] | 1 | # snapuserd - Daemon for servicing dm-user requests for Virtual A/B snapshots. |
| 2 | |
| 3 | typeattribute snapuserd coredomain; |
| 4 | |
| 5 | init_daemon_domain(snapuserd) |
| 6 | |
| 7 | allow snapuserd kmsg_device:chr_file rw_file_perms; |
| 8 | |
| 9 | # Reading and writing to /dev/block/dm-* (device-mapper) nodes. |
| 10 | allow snapuserd block_device:dir r_dir_perms; |
| 11 | allow snapuserd dm_device:chr_file rw_file_perms; |
| 12 | allow snapuserd dm_device:blk_file rw_file_perms; |
| 13 | |
| 14 | # Reading and writing to dm-user control nodes. |
| 15 | allow snapuserd dm_user_device:chr_file rw_file_perms; |