Skip to content

Commit

Permalink
Enable NetworkManager and dhclient to use initramfs-configured DHCP c…
Browse files Browse the repository at this point in the history
…onnection

Need to allow NetworkManager_t to read&delete tmpfs_t files and also
allow dhcpc_t to map NetworkManager_var_run_t files so that
NetworkManager and dhclient can use initramfs-configured DHCP connection.

Signed-off-by: Naoki Tanaka <[email protected]>
  • Loading branch information
naokitnk authored and zpytela committed Nov 1, 2023
1 parent f13d96b commit 5f6b4ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/contrib/networkmanager.if
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ interface(`networkmanager_manage_pid_files',`
files_search_pids($1)
manage_dirs_pattern($1, NetworkManager_var_run_t, NetworkManager_var_run_t)
manage_files_pattern($1, NetworkManager_var_run_t, NetworkManager_var_run_t)
allow $1 NetworkManager_var_run_t:file map;
')

########################################
Expand Down
3 changes: 3 additions & 0 deletions policy/modules/contrib/networkmanager.te
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ userdom_read_home_certs(NetworkManager_t)
userdom_read_user_home_content_files(NetworkManager_t)
userdom_dgram_send(NetworkManager_t)

fs_read_tmpfs_files(NetworkManager_t)
fs_delete_tmpfs_files(NetworkManager_t)

tunable_policy(`use_nfs_home_dirs',`
fs_read_nfs_files(NetworkManager_t)
')
Expand Down

0 comments on commit 5f6b4ed

Please sign in to comment.