summaryrefslogtreecommitdiffstats
path: root/etc/inc/priv
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-03 15:02:44 -0500
committersullrich <sullrich@pfsense.org>2009-12-03 15:02:44 -0500
commit2816a08958640b9b83aeeab09309f78154fefaba (patch)
treec80a0846d67e518676a88a1b120c2144c80fab9b /etc/inc/priv
parent0d60f50a230d030ee4ce128e9afc3391ff1a1d14 (diff)
downloadpfsense-2816a08958640b9b83aeeab09309f78154fefaba.zip
pfsense-2816a08958640b9b83aeeab09309f78154fefaba.tar.gz
Rename isAllowedPageUser() to isAllowed(). Add and move user priv items to /etc/inc/user.priv.inc. New privs can be added to this /etc/inc/priv/ directory and they will be automatically processed (packages, etc).
Diffstat (limited to 'etc/inc/priv')
-rw-r--r--etc/inc/priv/user.priv.inc31
1 files changed, 31 insertions, 0 deletions
diff --git a/etc/inc/priv/user.priv.inc b/etc/inc/priv/user.priv.inc
new file mode 100644
index 0000000..de8066c
--- /dev/null
+++ b/etc/inc/priv/user.priv.inc
@@ -0,0 +1,31 @@
+<?php
+
+?>/*
+ * USER PRIVILEGE DEFINITIONS
+ */
+
+$priv_list['user-shell-access'] = array();
+$priv_list['user-shell-access']['name'] = "User - Shell account access";
+$priv_list['user-shell-access']['descr'] = "Indicates whether the user is able to login for ".
+ "example via SSH.";
+
+$priv_list['user-copy-files'] = array();
+$priv_list['user-copy-files']['name'] = "User - Copy files";
+$priv_list['user-copy-files']['descr'] = "Indicates whether the user is allowed to copy files ".
+ "onto the {$g['product_name']} appliance via SCP/SFTP. ".
+ "If you are going to use this privilege, you must install ".
+ "scponly on the appliance (Hint: pkg_add -r scponly).";
+
+$priv_list['user-l2tp-dialin'] = array();
+$priv_list['user-l2tp-dialin']['name'] = "User - L2TP Dialin";
+$priv_list['user-l2tp-dialin']['descr'] = "Indicates whether the user is allowed to dial in via L2TP";
+
+$priv_list['user-pptp-dialin'] = array();
+$priv_list['user-pptp-dialin']['name'] = "User - PPTP Dialin";
+$priv_list['user-pptp-dialin']['descr'] = "Indicates whether the user is allowed to dial in via PPTP";
+
+$priv_list['user-pppoe-dialin'] = array();
+$priv_list['user-pppoe-dialin']['name'] = "User - PPPOE Dialin";
+$priv_list['user-pppoe-dialin']['descr'] = "Indicates whether the user is allowed to dial in via PPPOE";
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud