https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65521

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
struct socket {
  int sk;
};
selinux_task_getioprio(struct task_struct *p) {
  return current_has_perm(p, 256UL);
}
selinux_task_getscheduler(struct task_struct *p) {
  return current_has_perm(p, 256UL);
}
selinux_socket_getsockname(struct socket *sock) {
  return sock_has_perm(get_current(), &sock->sk, 16UL);
}
selinux_socket_getpeername(struct socket *sock) {
  return sock_has_perm(get_current(), &sock->sk, 16UL);
}
selinux_ops() { security_module_enable(selinux_ops); }

Reply via email to