Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
047a2dcc
Commit
047a2dcc
authored
Mar 07, 2015
by
Oliver Pinter
Browse files
HBSD LOG: use the pax_log_internal_imgp in pax_elf.c
Signed-off-by:
Oliver Pinter
<
oliver.pinter@hardenedbsd.org
>
parent
f5b3d773
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/hardenedbsd/hbsd_pax_common.c
View file @
047a2dcc
...
...
@@ -193,7 +193,7 @@ pax_elf(struct image_params *imgp, uint32_t mode)
flags_aslr
=
flags_segvuard
=
flags_hardening
=
flags_mprotect
=
flags_pageexec
=
0
;
if
(
pax_validate_flags
(
flags
)
!=
0
)
{
pax_log_internal
(
imgp
->
proc
,
PAX_LOG_DEFAULT
,
pax_log_internal
_imgp
(
imgp
,
PAX_LOG_DEFAULT
,
"unknown paxflags: %x"
,
flags
);
pax_ulog_internal
(
NULL
,
"unknown paxflags: %x
\n
"
,
flags
);
...
...
@@ -204,7 +204,7 @@ pax_elf(struct image_params *imgp, uint32_t mode)
/*
* indicate flags inconsistencies in dmesg and in user terminal
*/
pax_log_internal
(
imgp
->
proc
,
PAX_LOG_DEFAULT
,
pax_log_internal
_imgp
(
imgp
,
PAX_LOG_DEFAULT
,
"inconsistent paxflags: %x"
,
flags
);
pax_ulog_internal
(
NULL
,
"inconsistent paxflags: %x
\n
"
,
flags
);
...
...
@@ -239,7 +239,7 @@ pax_elf(struct image_params *imgp, uint32_t mode)
* if we disable features with secadm, print out a warning
*/
if
(
mode
!=
0
)
{
pax_log_internal
(
imgp
->
proc
,
PAX_LOG_DEFAULT
,
pax_log_internal
_imgp
(
imgp
,
PAX_LOG_DEFAULT
,
"the process has explicitly disabled features"
);
}
...
...
Write
Preview
Supports
Markdown
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