This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/65521] [5 Regression] nondeterministic -fcompare-debug failures
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 Mar 2015 09:03:20 +0000
- Subject: [Bug ipa/65521] [5 Regression] nondeterministic -fcompare-debug failures
- Auto-submitted: auto-generated
- References: <bug-65521-4 at http dot gcc dot gnu dot org/bugzilla/>
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); }