mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Change the return type of sv__setid_allowed from bool to int
(cherry picked from commit 62b8258a7e)
This commit is contained in:
parent
dc107fe1f9
commit
af3dce6141
3 changed files with 3 additions and 3 deletions
|
|
@ -104,7 +104,7 @@ SYSCTL_BOOL(_compat_linux, OID_AUTO, setid_allowed, CTLFLAG_RWTUN,
|
|||
&linux_setid_allowed, 0,
|
||||
"Allow setuid/setgid on execve of Linux binary");
|
||||
|
||||
bool
|
||||
int
|
||||
linux_setid_allowed_query(struct thread *td __unused,
|
||||
struct image_params *imgp __unused)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -71,6 +71,6 @@ extern int linux_preserve_vstatus;
|
|||
extern bool linux_map_sched_prio;
|
||||
|
||||
struct image_params;
|
||||
bool linux_setid_allowed_query(struct thread *td, struct image_params *imgp);
|
||||
int linux_setid_allowed_query(struct thread *td, struct image_params *imgp);
|
||||
|
||||
#endif /* _LINUX_MIB_H_ */
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ struct sysentvec {
|
|||
void (*sv_onexec)(struct proc *, struct image_params *);
|
||||
void (*sv_onexit)(struct proc *);
|
||||
void (*sv_ontdexit)(struct thread *td);
|
||||
bool (*sv_setid_allowed)(struct thread *td,
|
||||
int (*sv_setid_allowed)(struct thread *td,
|
||||
struct image_params *imgp);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue