Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
secrules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
tools
secrules
Commits
5cbf37fbfc7c
Commit
5cbf37fbfc7c
authored
2 years ago
by
jfp
Browse files
Options
Downloads
Patches
Plain Diff
Update rule0101
parent
24e85e972d75
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
secrules/rules01.py
+12
-11
12 additions, 11 deletions
secrules/rules01.py
with
12 additions
and
11 deletions
secrules/rules01.py
+
12
−
11
View file @
5cbf37fb
...
...
@@ -15,9 +15,9 @@
def
rule0101
(
fo
,
ftm
):
"""
Improper system-level account access restrictions
The following system-level accounts do not have account restrictions defined.
Improper configuration of access restrictions could result in the compromise of
the operating system environment, and compromise the confidentiality of customer data
"""
Any accounts determined as system-level accounts (group value less than
or equal to the SYSGEN parameter MAXSYSGROUP) that do not have account
access denied for dialup and remote access will be listed
"""
maxsysgroup
=
lib
.
getsyi
(
syidef
.
SYI__MAXSYSGROUP
)[
1
]
all_users
=
user
.
all_users
()
...
...
@@ -27,7 +27,8 @@
print
(
'
=========
'
,
file
=
fo
)
for
u
in
list
(
all_users
.
values
()):
if
(
u
.
uic_group
<=
maxsysgroup
)
and
(
u
.
dialup_access_p
!=
'
\xff\xff\xff
'
u
.
dialup_access_p
!=
b
'
\xff\xff\xff
'
or
u
.
remote_access_p
!=
b
'
\xff\xff\xff
'
):
if
ftm
:
print
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment