New boolean for using bluetooth
Hi All,
I added new SELinux boolean[1][2] to Fedora SELinux policy called deny_bluetooth.
I would like to push it also to refpolicy, however, refpolicy is not using bluetooth_socket at all, it's defined in policy but not used by any SELinux domain. Can I create patch also with adding these rules from Fedora policy? And also, for some reason my colleagues didn't follow name conventions of global booleans with refpolicy (I didn't find any deny_* boolean in refpolicy). So if it make sense to add these kind of boolean also to refpolicy, should I defined it as allow_bluetooth ?
[1]https://github.com/fedora-selinux/selinux-policy/commit/54c05f2645a660c545ec406558b42687df2552a7
[2]
https://github.com/fedora-selinux/selinux-policy-contrib/commit/5a0561d7b67ae8403d4e1a44acfc8db40ee269a5
Thanks,
Lukas.
Signature · 3 lines
Lukas Vrabec Senior Software Engineer, Security Technologies Red Hat, Inc.
SE Linux is based on a default deny model. So failing to allow something means denying it at the lowest levels of policy. So probably a deny boolean is a bad idea.
As for writing a patch, is Fedora still way different from upstream? If so you need to separately do the patch for upstream.
Quoted 20 lines · Lukas Vrabec
Hi All,
I added new SELinux boolean[1][2] to Fedora SELinux policy called
deny_bluetooth.I would like to push it also to refpolicy, however, refpolicy is not using
bluetooth_socketat all, it's defined in policy but not used by any SELinux domain. Can I create patch also with adding these rules from
Fedora policy? And also, for some reason my colleagues didn't follow name conventions of global booleans with refpolicy (I didn't find any deny_* boolean in refpolicy). So if it make sense to add these kind of boolean also to refpolicy, should I defined it asallow_bluetooth?[1]https://github.com/fedora-selinux/selinux-policy/commit/54c05f2645a660c545ec406558b42687df2552a7
[2]
https://github.com/fedora-selinux/selinux-policy-contrib/commit/5a0561d7b67ae8403d4e1a44acfc8db40ee269a5Thanks,
Lukas.
Signature · 1 line
Sent from my Huawei Mate 9 with K-9 Mail.
Quoted 5 lines · Lukas Vrabec
Hi All,
I added new SELinux boolean[1][2] to Fedora SELinux policy called
deny_bluetooth.
Quoted 7 lines
I would like to push it also to refpolicy, however, refpolicy is not using
bluetooth_socketat all, it's defined in policy but not used by any SELinux domain. Can I create patch also with adding these rules from Fedora policy? And also, for some reason my colleagues didn't follow name conventions of global booleans with refpolicy (I didn't find any deny_* boolean in refpolicy). So if it make sense to add these kind of boolean also to refpolicy, should I defined it asallow_bluetooth?
I'd love for these to be upstreamed! but yes it should be named "allow_bluetooth" and should be default disabled. Refpolicy doenst have any deny_* booleans, and always defaults to disable.
(When we pull down into gentoo some booleans are default enabled but upstream always goes the secure route.)
-- Jason
Quoted 12 lines
[1]https://github.com/fedora-selinux/selinux-policy/commit/54c05f2645a660c545ec406558b42687df2552a7
[2]
https://github.com/fedora-selinux/selinux-policy-contrib/commit/5a0561d7b67ae8403d4e1a44acfc8db40ee269a5Thanks,
Lukas.Signature · 3 lines
Lukas Vrabec Senior Software Engineer, Security Technologies Red Hat, Inc.
Quoted 14 lines · Jason Zaman
Quoted 5 lines · Lukas Vrabec
Hi All,
I added new SELinux boolean[1][2] to Fedora SELinux policy called
deny_bluetooth.Quoted 7 lines
I would like to push it also to refpolicy, however, refpolicy is not using
bluetooth_socketat all, it's defined in policy but not used by any SELinux domain. Can I create patch also with adding these rules from Fedora policy? And also, for some reason my colleagues didn't follow name conventions of global booleans with refpolicy (I didn't find any deny_* boolean in refpolicy). So if it make sense to add these kind of boolean also to refpolicy, should I defined it asallow_bluetooth?
Quoted 6 lines
I'd love for these to be upstreamed! but yes it should be named "
allow_bluetooth" and should be default disabled. Refpolicy doenst have any deny_* booleans, and always defaults to disable.
(When we pull down into gentoo some booleans are default enabled but upstream always goes the secure route.)
I see, okay. I will send patch shortly.
Thanks,
Lukas.
Quoted 17 lines
-- Jason
Quoted 12 lines
[1]https://github.com/fedora-selinux/selinux-policy/commit/54c05f2645a660c545ec406558b42687df2552a7
[2]
https://github.com/fedora-selinux/selinux-policy-contrib/commit/5a0561d7b67ae8403d4e1a44acfc8db40ee269a5Thanks,
Lukas.Signature · 3 lines
Lukas Vrabec Senior Software Engineer, Security Technologies Red Hat, Inc.
Signature · 3 lines
Lukas Vrabec Senior Software Engineer, Security Technologies Red Hat, Inc.