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
c44aa6c462d2
Commit
c44aa6c462d2
authored
6 months ago
by
jfp
Browse files
Options
Downloads
Patches
Plain Diff
Update rule1301, ignore disuser account
parent
3b1292db0572
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
secrules/rules13.py
+7
-4
7 additions, 4 deletions
secrules/rules13.py
with
7 additions
and
4 deletions
secrules/rules13.py
+
7
−
4
View file @
c44aa6c4
...
...
@@ -5,7 +5,7 @@
from
ovms
import
starlet
from
ovms.rtl
import
lib
from
ovms
import
user
from
ovms
import
rmsdef
,
ossdef
,
ssdef
from
ovms
import
rmsdef
,
ossdef
,
ssdef
,
uaidef
from
ovms
import
itemList
from
ovms.rtl.lib.FindFile
import
FindFile
,
file_exists
...
...
@@ -17,5 +17,5 @@
with
FindFile
(
fn
,
b
''
)
as
ifn
:
ifn
.
__next__
()
return
1
except
StopIteration
as
e
:
except
StopIteration
as
_
e
:
return
3
...
...
@@ -21,5 +21,5 @@
return
3
except
VMSError
as
e
:
except
VMSError
as
_
e
:
return
2
...
...
@@ -41,6 +41,9 @@
if
not
fmt
:
print
(
'
skip default account
'
,
file
=
fo
)
continue
# ignore disuser account
if
u
.
flags
&
uaidef
.
UAI_M_DISACNT
:
continue
fn
:
bytes
=
u
.
defdev
+
u
.
defdir
+
b
'
*.*
'
if
path_exists
(
fn
)
==
2
:
if
fmt
:
...
...
@@ -173,7 +176,7 @@
f
:
bytes
lgicmd
=
f
break
except
VMSError
as
e
:
except
VMSError
as
_
e
:
continue
if
lgicmd
==
b
''
or
not
file_exists
(
lgicmd
):
if
fmt
:
...
...
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