Skip to content

Commit

Permalink
Add tests to network_nmcli_permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Edgar Aguilar <edgar.aguilar@oracle.com>
  • Loading branch information
Xeicker committed Apr 18, 2024
1 parent fb0d45c commit 38d7ff0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# packages = polkit

cat <<EOF > /etc/polkit-1/localauthority/20-org.d/test.pkla
[Disable General User Access to NetworkManager]
Identity=default
Action=org.freedesktop.NetworkManager.*
ResultAny=no
ResultInactive=no
ResultActive=auth_admin
EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# packages = polkit

cat <<EOF > /etc/polkit-1/localauthority/20-org.d/test.pkla
[Disable General User Access to NetworkManager]
Identity=default
Action=org.freedesktop.NetworkManager.*
ResultAny=no
ResultInactive=no
ResultActive=no
EOF

0 comments on commit 38d7ff0

Please sign in to comment.