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
db7998d8
Commit
db7998d8
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
c8087ac0
Changes
2
Hide 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 @
db7998d8
...
...
@@ -267,7 +267,7 @@ cdef int start(const char *path) nogil:
dev_whitelist_paths
=
cyplist
[
string
]()
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
]()
for
p
in
dev_whitelist_paths
:
...
...
@@ -320,7 +320,7 @@ cdef int start(const char *path) nogil:
return
0
cdef
public
int
main
()
nogil
:
return
start
(
<
char
*>
'
.
'
)
return
start
(
<
char
*>
'
/
'
)
#def python_main():
# start(<char*>'.')
scan-filesystem/cython/main.pyx
View file @
db7998d8
...
...
@@ -267,7 +267,8 @@ cdef int start(const char *path) nogil:
dev_whitelist_paths
=
cyplist
[
string
]()
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
]()
for
p
in
dev_whitelist_paths
:
...
...
@@ -331,7 +332,7 @@ cdef int start(const char *path) nogil:
return
0
cdef
public
int
main
()
nogil
:
return
start
(
<
char
*>
'
.
'
)
return
start
(
<
char
*>
'
/
'
)
#def python_main():
# 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