Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
metadata-collect-agent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
metadata-collect-agent
Commits
5311454e
Commit
5311454e
authored
Nov 19, 2021
by
test
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start scan at /. Add boot partition and pre-pivot root partition to mains.
parent
dbdd271b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
scan-filesystem/cython/command-line.main.pyx
scan-filesystem/cython/command-line.main.pyx
+2
-2
scan-filesystem/cython/main.pyx
scan-filesystem/cython/main.pyx
+3
-2
No files found.
scan-filesystem/cython/command-line.main.pyx
View file @
5311454e
...
@@ -267,7 +267,7 @@ cdef int start(const char *path) nogil:
...
@@ -267,7 +267,7 @@ cdef int start(const char *path) nogil:
dev_whitelist_paths
=
cyplist
[
string
]()
dev_whitelist_paths
=
cyplist
[
string
]()
dev_whitelist_paths
.
append
(
b'.'
)
dev_whitelist_paths
.
append
(
b'.'
)
dev_whitelist_paths
.
append
(
b'/'
)
dev_whitelist_paths
.
append
(
b'/'
)
dev_whitelist_paths
.
append
(
b'/boot'
)
dev_whitelist_paths
.
append
(
b'/boot
/efi
'
)
dev_whitelist
=
cyplist
[
dev_t
]()
dev_whitelist
=
cyplist
[
dev_t
]()
for
p
in
dev_whitelist_paths
:
for
p
in
dev_whitelist_paths
:
...
@@ -320,7 +320,7 @@ cdef int start(const char *path) nogil:
...
@@ -320,7 +320,7 @@ cdef int start(const char *path) nogil:
return
0
return
0
cdef
public
int
main
()
nogil
:
cdef
public
int
main
()
nogil
:
return
start
(
<
char
*>
'
.
'
)
return
start
(
<
char
*>
'
/
'
)
#def python_main():
#def python_main():
# start(<char*>'.')
# start(<char*>'.')
scan-filesystem/cython/main.pyx
View file @
5311454e
...
@@ -267,7 +267,8 @@ cdef int start(const char *path) nogil:
...
@@ -267,7 +267,8 @@ cdef int start(const char *path) nogil:
dev_whitelist_paths
=
cyplist
[
string
]()
dev_whitelist_paths
=
cyplist
[
string
]()
dev_whitelist_paths
.
append
(
b'.'
)
dev_whitelist_paths
.
append
(
b'.'
)
dev_whitelist_paths
.
append
(
b'/'
)
dev_whitelist_paths
.
append
(
b'/'
)
dev_whitelist_paths
.
append
(
b'/boot'
)
dev_whitelist_paths
.
append
(
b'/boot/efi'
)
dev_whitelist_paths
.
append
(
b'/root'
)
dev_whitelist
=
cyplist
[
dev_t
]()
dev_whitelist
=
cyplist
[
dev_t
]()
for
p
in
dev_whitelist_paths
:
for
p
in
dev_whitelist_paths
:
...
@@ -331,7 +332,7 @@ cdef int start(const char *path) nogil:
...
@@ -331,7 +332,7 @@ cdef int start(const char *path) nogil:
return
0
return
0
cdef
public
int
main
()
nogil
:
cdef
public
int
main
()
nogil
:
return
start
(
<
char
*>
'
.
'
)
return
start
(
<
char
*>
'
/
'
)
#def python_main():
#def python_main():
# start(<char*>'.')
# start(<char*>'.')
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