This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GMail hide Hangouts Meet | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Hide the Google Hangouts Meet section in GMail | |
// @author Mark Montague <markmont@umich.edu> | |
// @match https://mail.google.com/* | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Run under Fedora 26 with SELinux enabled | |
# | |
# /tmp must not be mounted noexec for this to work. | |
# | |
[markmont@f26docker examples]$ sudo setsebool selinuxuser_execstack=off deny_execmem=on | |
[sudo] password for markmont: | |
[markmont@f26docker examples]$ gcc -o m2 m2.c | |
[markmont@f26docker examples]$ ./m2 | |
(dynamic) code returned 42 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Run under Fedora 26 with SELinux enabled | |
# | |
[markmont@f26docker examples]$ sudo setsebool selinuxuser_execstack=off deny_execmem=on | |
[sudo] password for markmont: | |
[markmont@f26docker examples]$ gcc -o m1 m1.c | |
[markmont@f26docker examples]$ ./m1 | |
mprotect failed to mark exec-only: Permission denied | |
markmont@f26docker examples]$ sudo grep denied /var/log/audit/audit.log | tail -1 | |
type=AVC msg=audit(1501685251.234:287): avc: denied { execmem } for pid=14572 comm="m1" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process permissive=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ # Using Fedora 26 x86_64 with SELinux enabled | |
$ uname -a | |
Linux f26docker.catseye.org 4.11.11-300.fc26.x86_64 #1 SMP Mon Jul 17 16:32:11 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux | |
$ # Turn off executable stacks: | |
$ sudo setsebool selinuxuser_execstack off | |
[sudo] password for markmont: | |
$ getsebool selinuxuser_execstack | |
selinuxuser_execstack --> off | |
$ # Use Rakudo Star for simple testing: | |
$ tar zxf rakudo-star-2017.07.tar.gz |