freebsd-nq/sys/security/audit
Ka Ho Ng 0dc332bff2 Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9).
fspacectl(2) is a system call to provide space management support to
userspace applications. VOP_DEALLOCATE(9) is a VOP call to perform the
deallocation. vn_deallocate(9) is a public KPI for kmods' use.

The purpose of proposing a new system call, a KPI and a VOP call is to
allow bhyve or other hypervisor monitors to emulate the behavior of SCSI
UNMAP/NVMe DEALLOCATE on a plain file.

fspacectl(2) comprises of cmd and flags parameters to specify the
space management operation to be performed. Currently cmd has to be
SPACECTL_DEALLOC, and flags has to be 0.

fo_fspacectl is added to fileops.
VOP_DEALLOCATE(9) is added as a new VOP call. A trivial implementation
of VOP_DEALLOCATE(9) is provided.

Sponsored by:	The FreeBSD Foundation
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D28347
2021-08-05 23:20:42 +08:00
..
audit_arg.c audit: rework AUDIT_SYSCLOSE 2020-12-17 18:52:04 +00:00
audit_bsm_db.c
audit_bsm_klib.c cache: drop the always curthread argument from reverse lookup routines 2020-08-24 08:57:02 +00:00
audit_bsm.c Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
audit_dtrace.c security: clean up empty lines in .c and .h files 2020-09-01 21:26:00 +00:00
audit_ioctl.h
audit_pipe.c
audit_private.h audit: provide audit_canon_path variant which accepts vnodes 2020-02-21 01:40:49 +00:00
audit_syscalls.c security: clean up empty lines in .c and .h files 2020-09-01 21:26:00 +00:00
audit_trigger.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
audit_worker.c vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
audit.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
audit.h audit: rework AUDIT_SYSCLOSE 2020-12-17 18:52:04 +00:00
bsm_domain.c
bsm_errno.c Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
bsm_fcntl.c
bsm_socket_type.c
bsm_token.c security: clean up empty lines in .c and .h files 2020-09-01 21:26:00 +00:00