mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
testing
This commit is contained in:
parent
723250e3dd
commit
3fc2b91a82
5 changed files with 18 additions and 2 deletions
|
|
@ -83,6 +83,7 @@ clean:
|
|||
rm -f $(SECCOMP_FILTERS)
|
||||
rm -f test/utils/index.html*
|
||||
rm -f test/utils/wget-log
|
||||
rm -f test/utils/firejail-test-file*
|
||||
rm -f test/utils/lstesting
|
||||
rm -f test/environment/index.html*
|
||||
rm -f test/environment/wget-log*
|
||||
|
|
|
|||
5
README
5
README
|
|
@ -562,6 +562,7 @@ Jose Riha (https://github.com/jose1711)
|
|||
- fix warshow, jumpnbump, tremulous, blobwars profile fixes
|
||||
- drop noinput for games with gampad/joystick support
|
||||
- goldendict profile fix
|
||||
- whitelist /usr/share/nextcloud to allow access to translation files
|
||||
jrabe (https://github.com/jrabe)
|
||||
- disallow access to kdbx files
|
||||
- Epiphany profile
|
||||
|
|
@ -882,6 +883,8 @@ Sebastian Hafner (https://github.com/DropNib)
|
|||
Senemu (https://github.com/Senemu)
|
||||
- protection for .pythonrc.py
|
||||
- fixed evince
|
||||
Seonwoo Lee (https://github.com/seonwoolee)
|
||||
- fix teams ignoring input sources e.g. microphones
|
||||
Sergey Alirzaev (https://github.com/l29ah)
|
||||
- firejail.h enum fix
|
||||
- firefox-common-addons.inc: + tridactyl
|
||||
|
|
@ -1106,6 +1109,8 @@ Hugo Osvaldo Barrera (https://github.com/WhyNotHugo)
|
|||
- Skype profile tweaks
|
||||
xee5ch (https://github.com/xee5ch)
|
||||
- skypeforlinux profile
|
||||
York Zhao (https://github.com/YorkZ)
|
||||
- tor browser profile fix
|
||||
Ypnose (https://github.com/Ypnose)
|
||||
- disable-shell.inc: add mksh shell
|
||||
yumkam (https://github.com/yumkam)
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -42,6 +42,11 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
|
||||
void *p = mmap (0, size, PROT_WRITE|PROT_READ|PROT_EXEC, MAP_SHARED, fd, 0);
|
||||
if (p == MAP_FAILED) {
|
||||
printf("mmap failed\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
printf("mmap successful\n");
|
||||
|
||||
// wait for expect to timeout
|
||||
|
|
@ -70,7 +75,12 @@ int main(int argc, char **argv) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
mprotect(p, size, PROT_READ|PROT_WRITE|PROT_EXEC);
|
||||
int rv = mprotect(p, size, PROT_READ|PROT_WRITE|PROT_EXEC);
|
||||
if (rv) {
|
||||
printf("mprotect failed\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("mprotect successful\n");
|
||||
|
||||
// wait for expect to timeout
|
||||
|
|
@ -82,7 +92,7 @@ int main(int argc, char **argv) {
|
|||
else if (strcmp(argv[1], "memfd_create") == 0) {
|
||||
int fd = syscall(SYS_memfd_create, "memfd_create", 0);
|
||||
if (fd == -1) {
|
||||
fprintf(stderr, "TESTING ERROR: cannot run memfd_create test\n");
|
||||
printf("memfd_create failed\n");
|
||||
return 1;
|
||||
}
|
||||
printf("memfd_create successful\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue