The Samba-Bugzilla – Attachment 15843 Details for
Bug 14315
rsync hangs when many errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test program to aid in reproducing the issue
seccomp-chown.c (text/x-csrc), 659 bytes, created by
Mark Vitale
on 2020-03-05 22:31:33 UTC
(
hide
)
Description:
test program to aid in reproducing the issue
Filename:
MIME Type:
Creator:
Mark Vitale
Created:
2020-03-05 22:31:33 UTC
Size:
659 bytes
patch
obsolete
>#include <stdio.h> >#include <unistd.h> >#include <seccomp.h> >#include <errno.h> > >int main() { > scmp_filter_ctx ctx; > ctx = seccomp_init(SCMP_ACT_ALLOW); /* default action: kill */ > > /* bail out with EPERM for chown() and friends */ > seccomp_rule_add(ctx, SCMP_ACT_ERRNO(EPERM), SCMP_SYS(chown), 0); > seccomp_rule_add(ctx, SCMP_ACT_ERRNO(EPERM), SCMP_SYS(fchown), 0); > seccomp_rule_add(ctx, SCMP_ACT_ERRNO(EPERM), SCMP_SYS(lchown), 0); > seccomp_rule_add(ctx, SCMP_ACT_ERRNO(EPERM), SCMP_SYS(fchownat), 0); > > seccomp_load(ctx); > > printf("Running shell. chown() and friends are now unavailable.\n"); > execl("/bin/sh", "/bin/sh", NULL); > return -1; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14315
: 15843