Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/freebsd32/freebsd32_capability.c
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
#include <compat/freebsd32/freebsd32_proto.h> | #include <compat/freebsd32/freebsd32_proto.h> | ||||
#ifdef CAPABILITIES | #ifdef CAPABILITIES | ||||
MALLOC_DECLARE(M_FILECAPS); | MALLOC_DECLARE(M_FILECAPS); | ||||
int | int | ||||
freebsd32_cap_enter(struct thread *td, | |||||
struct freebsd32_cap_enter_args *uap) | |||||
{ | |||||
/* | |||||
* We do not have an equivalent of capabilities.conf for freebsd32 | |||||
* compatibility, so do not allow capability mode for now. | |||||
*/ | |||||
return (ENOSYS); | |||||
} | |||||
int | |||||
freebsd32_cap_ioctls_limit(struct thread *td, | freebsd32_cap_ioctls_limit(struct thread *td, | ||||
struct freebsd32_cap_ioctls_limit_args *uap) | struct freebsd32_cap_ioctls_limit_args *uap) | ||||
{ | { | ||||
u_long *cmds; | u_long *cmds; | ||||
uint32_t *cmds32; | uint32_t *cmds32; | ||||
size_t ncmds; | size_t ncmds; | ||||
u_int i; | u_int i; | ||||
int error; | int error; | ||||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | freebsd32_cap_ioctls_get(struct thread *td, | ||||
error = 0; | error = 0; | ||||
out: | out: | ||||
FILEDESC_SUNLOCK(fdp); | FILEDESC_SUNLOCK(fdp); | ||||
return (error); | return (error); | ||||
} | } | ||||
#else /* !CAPABILITIES */ | #else /* !CAPABILITIES */ | ||||
int | |||||
freebsd32_cap_enter(struct thread *td, | |||||
struct freebsd32_cap_enter_args *uap) | |||||
{ | |||||
return (ENOSYS); | |||||
} | |||||
int | int | ||||
freebsd32_cap_ioctls_limit(struct thread *td, | freebsd32_cap_ioctls_limit(struct thread *td, | ||||
struct freebsd32_cap_ioctls_limit_args *uap) | struct freebsd32_cap_ioctls_limit_args *uap) | ||||
{ | { | ||||
return (ENOSYS); | return (ENOSYS); | ||||
} | } | ||||
Show All 10 Lines |