mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Add unlink and rename system calls to whitelist.
The keymgr uses these when handling entropy files.
This commit is contained in:
parent
dad6cc7bfe
commit
ff5a3982ce
@ -85,6 +85,14 @@ static struct sock_filter filter_keymgr[] = {
|
||||
/* Deny these, but with EACCESS instead of dying. */
|
||||
KORE_SYSCALL_DENY(ioctl, EACCES),
|
||||
|
||||
/* Entropy handling. */
|
||||
#if defined(SYS_unlink)
|
||||
KORE_SYSCALL_ALLOW(unlink),
|
||||
#endif
|
||||
#if defined(SYS_rename)
|
||||
KORE_SYSCALL_ALLOW(rename),
|
||||
#endif
|
||||
|
||||
/* Required to deal with private keys and certs. */
|
||||
#if defined(SYS_open)
|
||||
KORE_SYSCALL_ALLOW(open),
|
||||
|
Loading…
x
Reference in New Issue
Block a user