Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
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
alpine
abuild
Commits
817db0ea
Commit
817db0ea
authored
Feb 14, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: check for non-PIE suid files
fixes
#955
parent
7759f5e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
abuild.in
abuild.in
+9
-0
No files found.
abuild.in
View file @
817db0ea
...
...
@@ -552,6 +552,15 @@ postcheck() {
warning
"World writeable directories found:"
echo
"
$i
"
fi
# check so we dont have any suid root binaries that are not
i
=
$(
find
"
$dir
"
-type
f
-perm
+6000
\
| xargs scanelf
--nobanner
--etype
ET_EXEC
\
|
sed
"s|ET_EXEC
$dir
|
\t
|"
)
if
[
-n
"
$i
"
]
;
then
error
"Found non-PIE files that has SUID:"
echo
"
$i
"
return
1
fi
return
0
}
...
...
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