search for: prctl

Displaying 20 results from an estimated 78 matches for "prctl".

Did you mean: brctl
2006 Apr 16
1
openssh 4.3 on IRIX 5.3
...ke precedence configure: WARNING: ## ------------------------------------------- ## configure: WARNING: ## Report this to openssh-unix- dev at mindrot.org ## configure: WARNING: ## ------------------------------------------- ## checking for sys/dir.h... yes checking sys/prctl.h usability... no checking sys/prctl.h presence... yes configure: WARNING: sys/prctl.h: present but cannot be compiled configure: WARNING: sys/prctl.h: check for missing prerequisite headers? configure: WARNING: sys/prctl.h: see the Autoconf documentation configure: WARNING: s...
2016 Oct 26
2
use PT_DENY_ATTACH on Mac OS X
...ult in a segmentation violation in the parent Any reason not to use it in platform_disable_tracing() ? diff --git a/configure.ac b/configure.ac index f5e1378..88c4633 100644 --- a/configure.ac +++ b/configure.ac @@ -405,6 +405,7 @@ AC_CHECK_HEADERS([ \ sys/poll.h \ sys/prctl.h \ sys/pstat.h \ + sys/ptrace.h \ sys/select.h \ sys/stat.h \ sys/stream.h \ diff --git a/platform-tracing.c b/platform-tracing.c index 81020e7..4c80a28 100644 --- a/platform-tracing.c +++ b/platform-tracing.c @@ -20,6 +20,9 @@ #if defined(HAVE_SYS_PRCT...
2004 Jan 26
1
patch for linux capabilities
...clientserver.c --- rsync-2.6.0.orig/clientserver.c 2003-09-10 23:00:19.000000000 -0500 +++ rsync-2.6.0/clientserver.c 2004-01-26 11:27:53.000000000 -0600 @@ -25,6 +25,18 @@ * rsyncd. **/ +#ifdef HAVE_LINUX_CAPS +#ifdef _POSIX_SOURCE +#undef _POSIX_SOURCE +#include <sys/prctl.h> +#include <sys/capability.h> +#define _POSIX_SOURCE +#else +#include <sys/prctl.h> +#include <sys/capability.h> +#endif +#endif + #include "rsync.h" extern int module_id; @@ -217,6 +229,10 @@ int start_glob=0; int ret; char *request=NULL; +#if...
2019 Sep 12
3
Requesting clarification of some HWASAN behaviours.
Hello, I'm working on implementing hwasan instrumentation in GCC, and have just started discussing my current work-in-progress on the gcc-patches mailing list. (https://gcc.gnu.org/ml/gcc-patches/2019-09/msg00387.html -- the email that Kostya saw and added people to). I've gotten about as basic a user-space implementation as possible (using the interceptor ABI) up
2013 Feb 02
2
Relaxing strict chroot checks on recent Linux kernels?
At the risk of beating a dead horse, I'd like to see the chroot security checks relaxed a bit. On newer Linux kernels, there's a prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) that prevents privilege elevation (via setuid binaries, etc) for the caller and all of its descendants. That means that chroot(untrusted directory), prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0), setreuid(uid, uid), execve(a shell) is safe [1], even if the user can hardli...
2004 Aug 18
2
Trying regression tests
...didn't have sudo installed on Tru64 (now I do). Anyway, for the 3.9p1 release, all of them run except for a couple of problems: - agent-ptrace fails; it looks like setgid isn't enough to kill tracing under Tru64, and I can't find anything that looks like it will (like Linux's prctl). - reconfigure hangs; the script appears to get stuck in a loop. I tried turning on shell tracing; it looks like it is hanging when the script is called with "$TEST_SHELL -n $SCRIPT" to check it for errors. Using TEST_SHELL=/bin/ksh makes it work. -- Chris Adams <cm...
2018 Aug 12
13
[PATCH nbdkit 00/10] FreeBSD support.
With these patches, a majority of tests pass. The notable things which are still broken: - Because FreeBSD links /home -> /usr/home, $(pwd) gives a different result from realpath(2). Therefore some tests which implicitly rely on (eg) a plugin which calls nbdkit_realpath internally and then checking that path against $(pwd) fail. - Shebangs (#!) don't seem to work
2011 Aug 03
1
[PATCH v2] kinit: Add drop_capabilities support.
...Inc. All Rights Reserved + * Author: mikew at google.com (Mike Waychison) + */ + +/* + * We have to include the klibc types.h here to keep the kernel's + * types.h from being used. + */ +#include <sys/types.h> + +#include <sys/capability.h> +#include <sys/prctl.h> +#include <sys/utsname.h> +#include <errno.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include "kinit.h" + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) + +#define MAKE_CAP(cap) [cap] = {...
2017 Jan 31
3
quota-status returns quota_status_success when email would put user over quota
...= 0 >> getegid() = 110 >> getgid() = 110 >> getegid() = 110 >> setgroups(1, [110]) = 0 >> setresuid(-1, 110, -1) = 0 >> prctl(PR_SET_DUMPABLE, 1) = 0 >> stat("/data/vmail/asom-net.dk/kptest", {st_mode=S_IFDIR|0700, >> st_size=4096, ...}) = 0 >> prctl(PR_SET_DUMPABLE, 1) = 0 >> setsockopt(12, SOL_TCP, TCP_CORK, [1], 4) = 0 >> write(12, &qu...
2006 Mar 03
1
problem when compiling samba-3.0.21c on power PC platform
Hi, All, Currently we are using Samba 2.2 and planning to update to samba 3. However, I encountered the following error when I try to compile the samba-3.0.21c: ------------------------ ... Checking for creat64...yes Checking for prctl...yes Configure: error: cannot run test program while cross compiling See 'config.log' for more details. ------------------------ Would anyone with experience on cross compiling samba3 help me? Thanks in advance, Shunnian
2017 Jan 24
2
quota-status returns quota_status_success when email would put user over quota
...= 0 geteuid() = 0 getegid() = 110 getgid() = 110 getegid() = 110 setgroups(1, [110]) = 0 setresuid(-1, 110, -1) = 0 prctl(PR_SET_DUMPABLE, 1) = 0 stat("/data/vmail/asom-net.dk/kptest", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 prctl(PR_SET_DUMPABLE, 1) = 0 setsockopt(12, SOL_TCP, TCP_CORK, [1], 4) = 0 write(12, "action=DUNNO\n\n", 14) = 14 set...
2007 Sep 18
2
poll.h vs sys/poll.h on QNX Neutrino
From the ChangeLog: - dtucker at cvs.openbsd.org 2007/06/25 12:02:27 [atomicio.c] Include <poll.h> like the man page says rather than <sys/poll.h>. ok djm@ This was probably ill-advised given the history of this header file. Some older systems, and some not-quite-XSI-compliant systems such as QNX Neutrino, still have <sys/poll.h> but not
2019 Sep 20
2
Extra questions about HWASAN
...san_tag_mismatch_stub work for you? The first one has a non-standard ABI, but it can save register state at the point of the fault in the user code. > --- > As I understand it, when the mainline kernel gets patched to accept > tagged pointers in syscalls, the relaxed ABI will be behind a `prctl` > call rather than being generically turned on. I guess this means that > Android will eventually have the same requirement? > > If/when that happens, would the initial call to `prctl` be put in > libhwasan, or would something like that be done in Bionic? (n.b. this > call...
2008 Mar 03
1
Unable open raw socket in CentOS 5 - SE Linux and kernel capability interaction?
...o modify capabilities within the program, even if I'm using an SE Linux policy? Thanks S Source file #include <stdio.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/prctl.h> #include <netinet/in.h> int main(void) { int fd = socket(PF_INET, SOCK_RAW, IPPROTO_TCP); if (-1 == fd) { printf("Failed to open raw socket: %d=%s\n", errno, strerror(errno)); } else { printf("Socket opened successfully\n"); close(fd); } return 0;...
2017 Feb 01
0
quota-status returns quota_status_success when email would put user over quota
...>> getegid() = 110 >>> getgid() = 110 >>> getegid() = 110 >>> setgroups(1, [110]) = 0 >>> setresuid(-1, 110, -1) = 0 >>> prctl(PR_SET_DUMPABLE, 1) = 0 >>> stat("/data/vmail/asom-net.dk/kptest", {st_mode=S_IFDIR|0700, >>> st_size=4096, ...}) = 0 >>> prctl(PR_SET_DUMPABLE, 1) = 0 >>> setsockopt(12, SOL_TCP, TCP_CORK, [1], 4) = 0 >&g...
2006 Feb 06
1
Compile warning report of openssh 4.3p1 on Intel Macs
...r.h presence... yes checking for sys/dir.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/ndir.h usability... no checking sys/ndir.h presence... no checking for sys/ndir.h... no checking sys/prctl.h usability... no checking sys/prctl.h presence... no checking for sys/prctl.h... no checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking sys/select.h usability... yes checking sys/select.h presence... yes check...
2006 Apr 23
0
Configuration Warnings OpenSSH 4.3p2
...NG: ## Report this to openssh-unix-dev at mindrot.org ## configure: WARNING: ## ------------------------------------------- ## checking for sys/mman.h... yes checking sys/ndir.h usability... no checking sys/ndir.h presence... no checking for sys/ndir.h... no checking sys/prctl.h usability... no checking sys/prctl.h presence... no checking for sys/prctl.h... no checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking sys/select.h usability... no checking sys/select.h presence... yes config...
2017 Jan 31
0
quota-status returns quota_status_success when email would put user over quota
...geteuid() = 0 > getegid() = 110 > getgid() = 110 > getegid() = 110 > setgroups(1, [110]) = 0 > setresuid(-1, 110, -1) = 0 > prctl(PR_SET_DUMPABLE, 1) = 0 > stat("/data/vmail/asom-net.dk/kptest", {st_mode=S_IFDIR|0700, > st_size=4096, ...}) = 0 > prctl(PR_SET_DUMPABLE, 1) = 0 > setsockopt(12, SOL_TCP, TCP_CORK, [1], 4) = 0 > write(12, "action=DUNNO\n\n&...
2011 Jul 19
4
[PATCH v1 0/2] Support dropping of capabilities from early userspace.
This patchset applies to klibc mainline. As is it will probably collide with Maximilian's recent patch to rename run-init to switch_root posted last week. To boot an untrusted environment with certain capabilities locked out, we'd like to be able to drop the capabilities up front from early userspace, before we actually transition onto the root volume. This patchset implements this by
2011 Sep 02
1
problems building openssh-5.8p1 on qnx
....h presence... yes checking for sys/mman.h... yes checking sys/ndir.h usability... no checking sys/ndir.h presence... no checking for sys/ndir.h... no checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking sys/prctl.h usability... no checking sys/prctl.h presence... no checking for sys/prctl.h... no checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking sys/select.h usability... yes checking sys/select.h presence... yes check...