add pve-access-control

This commit is contained in:
jiangcuo 2024-12-25 13:11:05 +08:00
parent ec1408d632
commit 49dc96eb63
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
SCRIPT_DIR=$(cd $(dirname ${BASH_SOURCE[0]}); pwd)
PKGNAME=$(basename $SCRIPT_DIR)
echo "This is $PKGNAME build scripts"
source $SCRIPT_DIR/../common.sh
cd $SCRIPT_DIR/$PKGNAME
exec_build_make

View File

@ -0,0 +1,23 @@
diff --git a/src/PVE/AccessControl.pm b/src/PVE/AccessControl.pm
index 47f2d38b09c7f267e74978de506cb47cbdf8ae41..f00f7178a03e37d50d1570b111bcd6ab1cfea297 100644
--- a/src/PVE/AccessControl.pm
+++ b/src/PVE/AccessControl.pm
@@ -1071,6 +1071,10 @@ my $privgroups = {
admin => [
'Sys.Console',
'Sys.Syslog',
+ 'Sys.PowerMgmt',
+ 'Sys.Modify',
+ 'Sys.Incoming',
+ 'Sys.AccessNetwork',
],
user => [],
audit => [
@@ -1111,6 +1115,7 @@ my $privgroups = {
'User.Modify',
'Group.Allocate', # edit/change group settings
'Realm.AllocateUser',
+ 'Realm.Allocate',
],
user => [],
audit => [],

View File

@ -0,0 +1 @@
patches/pxcloud/001-add-more-permission-for-admin.patch