Displaying 20 results from an estimated 97 matches for "prctl".
Did you mean:
brctl
2023 Mar 16
1
[libnbd PATCH v4 3/3] lib/utils: add unit test for async-signal-safe assert()
...nl posix_fadvise helps to optimise linear reads and writes.
>> dnl
>> +dnl When /proc/sys/kernel/core_pattern starts with a pipe (|) symbol, Linux
>> +dnl ignores "ulimit -c" and (equivalent) setrlimit(RLIMIT_CORE) actions, for
>> +dnl disabling core dumping. Only prctl() can be used then, for that purpose.
>> +dnl
>> dnl strerrordesc_np (glibc only) is preferred over sys_errlist:
>> dnl https://lists.fedoraproject.org/archives/list/glibc at lists.fedoraproject.org/thread/WJHGG2OO7ABNAYICGA5WQZ2Q34Q2FEHU/
>> AC_CHECK_FUNCS([\
>>...
2023 Mar 17
1
[libnbd PATCH v4 3/3] lib/utils: add unit test for async-signal-safe assert()
...ps to optimise linear reads and writes.
> >> dnl
> >> +dnl When /proc/sys/kernel/core_pattern starts with a pipe (|) symbol, Linux
> >> +dnl ignores "ulimit -c" and (equivalent) setrlimit(RLIMIT_CORE) actions, for
> >> +dnl disabling core dumping. Only prctl() can be used then, for that purpose.
> >> +dnl
> >> dnl strerrordesc_np (glibc only) is preferred over sys_errlist:
> >> dnl https://lists.fedoraproject.org/archives/list/glibc at lists.fedoraproject.org/thread/WJHGG2OO7ABNAYICGA5WQZ2Q34Q2FEHU/
> >> AC_CHECK_...
2004 Jan 26
1
patch for linux capabilities
...r.c rsync-2.6.0/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;
+#ifdef HAVE_LIN...
2006 Apr 16
1
openssh 4.3 on IRIX 5.3
...will take
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: sys/prctl.h:...
2016 Oct 26
2
use PT_DENY_ATTACH on Mac OS X
...flag will result 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_PRCTL_H)
#include <sys/prctl.h> /...
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 and running, and would
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...
2007 Feb 26
1
Cross-compiling for ARM with 3.0.24
Hello all,
I am attempting to cross-compile Samba 3.0.24 for the ARM
platform using on an Ubuntu Dapper box using arm-linux-gcc 3.4.0. I
am using the following script to call configure:
#!/bin/bash
ac_cv_func_prctl=no
linux_getgrouplist_ok=no
./configure --without-krb5 --without-ldap --without-ads --disable-cups
--without-swat --prefix=/home/tropem/samba-build --host=arm-linux
--build=i386-linux
The console error is:
checking for __open64... yes
checking for creat64... yes
checking for prctl... yes
configur...
2023 Dec 02
33
[Bug 3639] New: server thread aborts during client login after receiving SSH2_MSG_KEXINIT
https://bugzilla.mindrot.org/show_bug.cgi?id=3639
Bug ID: 3639
Summary: server thread aborts during client login after
receiving SSH2_MSG_KEXINIT
Product: Portable OpenSSH
Version: 9.2p1
Hardware: ARM
OS: Linux
Status: NEW
Severity: critical
Priority: P5
Component:
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 <cmadams at...
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 the same way
2011 Aug 03
1
[PATCH v2] kinit: Add drop_capabilities support.
...* Copyright 2011 Google 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] = { .cap_nam...
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, "action=DUNNO\...
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
setsockopt(12, SOL_...
2023 Mar 15
4
[libnbd PATCH v4 0/3] lib/utils: add async-signal-safe assert()
This is version 4 of the following sub-series:
[libnbd PATCH v3 06/29] lib/utils: introduce xwrite() as a more robust write()
[libnbd PATCH v3 07/29] lib/utils: add async-signal-safe assert()
[libnbd PATCH v3 08/29] lib/utils: add unit test for async-signal-safe assert()
http://mid.mail-archive.com/20230215141158.2426855-7-lersek at redhat.com
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 <poll.h>.
I
2005 Nov 06
1
Cannot cross-compile 3.0.20b from i686 to mipsel
...linux-ar CC=mipsel-hdhlan-linux-gcc \
LD=mipsel-hdhlan-linux-ld NM=mipsel-hdhlan-linux-nm \
OBJDUMP=mipsel-hdhlan-linux-objdump
configure failed with this error message:
checking for open64... yes
checking for _open64... no
checking for __open64... yes
checking for creat64... yes
checking for prctl... yes
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
In config.log I find the following error:
configure:19052: checking for _open64
configure:19109: /usr/local/linkstation/gcc-3.4.4-glibc-2.3.5/mipsel-hdhlan-linux/bin/mipsel-hdhlan-linux-g...
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 need...
2008 Mar 03
1
Unable open raw socket in CentOS 5 - SE Linux and kernel capability interaction?
...still need to 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;
}...