Page MenuHomeFreeBSD

imgact_elf: Clear no-ASLR and -WXORX flags earlier for setugid images
ClosedPublic

Authored by markj on Tue, Jun 2, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 12, 2:58 AM
Unknown Object (File)
Fri, Jun 12, 12:31 AM
Unknown Object (File)
Wed, Jun 10, 9:21 PM
Unknown Object (File)
Wed, Jun 10, 3:12 PM
Unknown Object (File)
Wed, Jun 10, 12:25 PM
Unknown Object (File)
Tue, Jun 9, 3:05 AM
Unknown Object (File)
Tue, Jun 9, 3:02 AM
Unknown Object (File)
Mon, Jun 8, 2:24 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73635
Build 70518: arc lint + arc unit

Event Timeline

markj requested review of this revision.Tue, Jun 2, 9:27 PM
sys/kern/imgact_elf.c
1366

Why moving the VOP_UNLOCK line? If moving, I would put it before the newly moved check imgp->credential_setid

sys/kern/imgact_elf.c
1366

I did it this way to avoid changing error handling, and to keep related blocks of code close together. In particular, goto ret requires the vnode to be locked. If you prefer, I will move it earlier and add a new goto label.

sys/kern/imgact_elf.c
1366

I think it is simpler to relock the vnode before goto. Yes, I think it makes sense to move the unlock earlier.

markj marked 2 inline comments as done.

Unlock the vnode earlier.

This revision is now accepted and ready to land.Wed, Jun 3, 3:45 PM