Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
a14796a8
Commit
a14796a8
authored
May 01, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove old privilege file
parent
43d14ba9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1472 deletions
+18
-1472
priv.defs.inc
src/etc/inc/priv.defs.inc
+0
-1457
priv.inc
src/etc/inc/priv.inc
+0
-15
upgrade_config.inc
src/etc/inc/upgrade_config.inc
+18
-0
No files found.
src/etc/inc/priv.defs.inc
deleted
100644 → 0
View file @
43d14ba9
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/etc/inc/priv.inc
View file @
a14796a8
...
@@ -63,21 +63,6 @@ function cmp_page_matches($page, & $matches, $fullwc = true) {
...
@@ -63,21 +63,6 @@ function cmp_page_matches($page, & $matches, $fullwc = true) {
return
false
;
return
false
;
}
}
function
map_page_privname
(
$page
)
{
global
$priv_list
;
foreach
(
$priv_list
as
$pname
=>
$pdata
)
{
if
(
strncmp
(
$pname
,
"page-"
,
5
))
continue
;
$fullwc
=
false
;
if
(
!
strcasecmp
(
$page
,
"any"
)
||!
strcmp
(
$page
,
"*"
))
$fullwc
=
true
;
if
(
cmp_page_matches
(
$page
,
$pdata
[
'match'
],
$fullwc
))
return
$pname
;
}
return
false
;
}
function
get_user_privdesc
(
&
$user
)
{
function
get_user_privdesc
(
&
$user
)
{
global
$priv_list
;
global
$priv_list
;
...
...
src/etc/inc/upgrade_config.inc
View file @
a14796a8
...
@@ -29,6 +29,24 @@
...
@@ -29,6 +29,24 @@
require_once
(
'rrd.inc'
);
require_once
(
'rrd.inc'
);
function
map_page_privname
(
$page
)
{
global
$priv_list
;
foreach
(
$priv_list
as
$pname
=>
$pdata
)
{
if
(
strncmp
(
$pname
,
"page-"
,
5
))
continue
;
$fullwc
=
false
;
if
(
!
strcasecmp
(
$page
,
"any"
)
||!
strcmp
(
$page
,
"*"
))
$fullwc
=
true
;
if
(
cmp_page_matches
(
$page
,
$pdata
[
'match'
],
$fullwc
))
return
$pname
;
}
return
false
;
}
/*
/*
* Upgrade functions must be named:
* Upgrade functions must be named:
* upgrade_XXX_to_YYY
* upgrade_XXX_to_YYY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment