HardenedBSD / secadm

HardenedBSD Security Administration
http://hardenedbsd.org/
29 stars 7 forks source link

rework secadm hook into pax framework #24

Open opntr opened 8 years ago

opntr commented 8 years ago

Now the secadm directly calls pax_elf. It would be nice to change this order: calling secadm hook from pax_elf.

opntr commented 8 years ago

This change is required due the hbsdcontrol framework. If both exists in the system, we must ensure the proper order of applied policies.

In the current behavior secadm always overrides hbsdcontrol's policy, in the near future this will change.

Other interesting thing, is that the exec_check_permission is called twice: 1) from kern_exec.c 2) imgact_elf.c