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
0d7e02e7
Commit
0d7e02e7
authored
Jan 29, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ids) code style
parent
3eecf959
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
rulecache.py
src/opnsense/scripts/suricata/lib/rulecache.py
+1
-1
rule-updater.py
src/opnsense/scripts/suricata/rule-updater.py
+0
-1
No files found.
src/opnsense/scripts/suricata/lib/rulecache.py
View file @
0d7e02e7
...
@@ -137,7 +137,7 @@ class RuleCache(object):
...
@@ -137,7 +137,7 @@ class RuleCache(object):
# lock create process
# lock create process
lock
=
open
(
self
.
cachefile
+
'.LCK'
,
'w'
)
lock
=
open
(
self
.
cachefile
+
'.LCK'
,
'w'
)
try
:
try
:
fcntl
.
flock
(
lock
,
fcntl
.
LOCK_EX
|
fcntl
.
LOCK_NB
)
fcntl
.
flock
(
lock
,
fcntl
.
LOCK_EX
|
fcntl
.
LOCK_NB
)
except
IOError
:
except
IOError
:
# other process is already creating the cache, wait, let the other process do it's work and return.
# other process is already creating the cache, wait, let the other process do it's work and return.
fcntl
.
flock
(
lock
,
fcntl
.
LOCK_EX
)
fcntl
.
flock
(
lock
,
fcntl
.
LOCK_EX
)
...
...
src/opnsense/scripts/suricata/rule-updater.py
View file @
0d7e02e7
...
@@ -62,7 +62,6 @@ if __name__ == '__main__':
...
@@ -62,7 +62,6 @@ if __name__ == '__main__':
else
:
else
:
enabled_rulefiles
[
section
.
strip
()][
'filter'
]
=
""
enabled_rulefiles
[
section
.
strip
()][
'filter'
]
=
""
# download / remove rules
# download / remove rules
md
=
metadata
.
Metadata
()
md
=
metadata
.
Metadata
()
dl
=
downloader
.
Downloader
(
target_dir
=
rule_source_directory
)
dl
=
downloader
.
Downloader
(
target_dir
=
rule_source_directory
)
...
...
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