search for: fd_cloexec

Displaying 20 results from an estimated 240 matches for "fd_cloexec".

2023 Feb 15
1
[libnbd PATCH v3 13/29] socket activation: avoid manipulating the sign bit
F_SETFD takes an "int", so it stands to reason that FD_CLOEXEC expands to an "int". In turn, it's bad hygiene to manipulate the sign bit of (signed) integers with bit operations: ~FD_CLOEXEC Convert FD_CLOEXEC to "unsigned int" for the bitwise complement operator: ~(unsigned)FD_CLOEXEC The bitwise complement then results in an &...
2017 Dec 12
1
MIT Kerberos suddenly stopping
Hello, I'm using samba 4.7.3 to run an AD and I'm currently having issues with the MIT kerberos because it stops some time after starting (and apparently working correctly) without logging nothing out of the ordinary. My setup has 2 DC: one in an ubuntu 12.04 with version 4.1.9 (which we're migrating from) and the one I mentioned in CentOS 7 (which will be the only DC in the future).
2010 Jan 28
4
[Bug 1706] New: Set FD_CLOEXEC on accepted socket
https://bugzilla.mindrot.org/show_bug.cgi?id=1706 Summary: Set FD_CLOEXEC on accepted socket Product: Portable OpenSSH Version: 5.3p1 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: unassigned-bugs at mindrot.org Reporte...
2016 Dec 20
0
[Bug 1104] New: Use close on exec flags instead of fcntl
...at lists.netfilter.org Reporter: g.gupta at samsung.com Now in lateswt versions of glibc, close on exec flags are available for file/socket open functions which are better than using fcntl. Below is current usage of fcntl in iptables: ./libxtables/xtables.c: if (fcntl(procfile, F_SETFD, FD_CLOEXEC) == -1) { ./libxtables/xtables.c: if (fcntl(sockfd, F_SETFD, FD_CLOEXEC) == -1) { ./libiptc/libiptc.c: if (fcntl(sockfd, F_SETFD, FD_CLOEXEC) == -1) { ./extensions/libxt_set.h: if (fcntl(sockfd, F_SETFD, FD_CLOEXEC) == -1) It can use O_CLOEXEC flag with open() system call & SOCK_CLOEX...
2009 Sep 01
7
[Bug 1643] New: Set FD_CLOEXEC on client socket
https://bugzilla.mindrot.org/show_bug.cgi?id=1643 Summary: Set FD_CLOEXEC on client socket Product: Portable OpenSSH Version: 5.2p1 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: unassigned-bugs at mindrot.org ReportedB...
2008 Jan 17
1
convert plugin fails - drops root privileges then tries to create file in /
...IVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0x8cb000 close(3) = 0 mprotect(0x8cb000, 4096, PROT_READ) = 0 munmap(0xb7f22000, 21917) = 0 open("/etc/passwd", O_RDONLY) = 3 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=1759, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f27000 read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1759 close(3) = 0 munmap(0xb7f27000, 4096)...
2016 Aug 07
2
debian (1.2.22-3~bpo8+1) package build failure
On Sat, Aug 06, 2016 at 03:43:48AM +0000, Eric Wong wrote: > Eric Wong <e at 80x24.org> wrote: > > I'm trying to test a trivial patch to set FD_CLOEXEC on the > > flintlock lockfd when using F_OFD_SETLK > > Fwiw, this is the patch I was originally going to test. > (but now I see maybe my F_SETFD might only need to be > called on F_OFD_SETLK success) Description at bottom. > > --- a/backends/flint_lock.cc > +++ b/bac...
2003 Nov 02
2
dies on start-up: Auth process
...O_NOFOLLOW) = 4 fchdir(4) = 0 open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory) open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 6 fstat64(6, {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 brk(0) = 0x8061000 brk(0x8062000) = 0x8062000 getdents64(6, /* 2 entries */, 4096) = 48 getdents64(6, /* 0 entries */, 4096) = 0 close(4) = 0 close(6) = 0 fchdi...
2004 Jul 29
2
Samba 3.0.x and high processor utilication caused by /etc/passwd access
...9 0 4280 4280 3700 S 0.3 0.8 0:02 smbd Systrace on one of the smbd processes shows the following: ################################################################ open("/etc/passwd", O_RDONLY) = 26 fcntl64(26, F_GETFD) = 0 fcntl64(26, F_SETFD, FD_CLOEXEC) = 0 _llseek(26, 0, [0], SEEK_CUR) = 0 fstat64(26, {st_mode=S_IFREG|0644, st_size=5540, ...}) = 0 mmap2(NULL, 5540, PROT_READ, MAP_SHARED, 26, 0) = 0x40510000 _llseek(26, 5540, [5540], SEEK_SET) = 0 fstat64(26, {st_mode=S_IFREG|0644, st_size=5540, ...}) = 0 munmap(0x40510000, 5...
2016 Aug 06
2
debian (1.2.22-3~bpo8+1) package build failure
I'm trying to test a trivial patch to set FD_CLOEXEC on the flintlock lockfd when using F_OFD_SETLK and am running into a build failure even in an unpatched state. This is on a Debian jessie amd64 system building the jessie-backports version. The stable version (1.2.19-1+deb8u1) works and builds fine using the same commands, however I also encounte...
2017 Mar 03
2
[PATCH 1/2] Use gnulib set_nonblocking_flag function instead of fcntl.
The previous code: fcntl (fd, F_SETFL, O_NONBLOCK) was technically incorrect, because it would have reset any other flags on the file descriptor. Thanks: Eric Blake --- bootstrap | 1 + daemon/inotify.c | 6 ++++-- lib/conn-socket.c | 21 +++++++++++---------- m4/.gitignore | 9 +++++++++ 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/bootstrap b/bootstrap
2007 Jul 16
1
Tripp Lite OmniSV1500XL
...= 0 mprotect(0x326c081000, 4096, PROT_READ) = 0 mprotect(0x326b819000, 4096, PROT_READ) = 0 munmap(0x2aaaaaaac000, 179404) = 0 brk(0) = 0x612000 brk(0x633000) = 0x633000 socket(PF_FILE, SOCK_DGRAM, 0) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 connect(3, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0 fstat(1, {st_mode=S_IFREG|0664, st_size=4565, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaaaaac000 open("/opt/nut/etc/ups.conf", O_RDONLY) = 4 fstat(4, {st_mod...
2007 Aug 21
2
Dovecot should raise the limit of file descriptors at startup...
...uid:0 gid:3 rdev:13,2 O_RDONLY|O_LARGEFILE /export/zones/dovecot/root/dev/null 2: S_IFCHR mode:0666 dev:327,15 ino:18128 uid:0 gid:3 rdev:13,2 O_RDONLY|O_LARGEFILE # pfiles 26378 | tail -10 243: S_IFIFO mode:0000 dev:324,0 ino:2038192 uid:0 gid:0 size:0 O_RDWR|O_NONBLOCK FD_CLOEXEC 246: S_IFIFO mode:0000 dev:324,0 ino:2048002 uid:0 gid:0 size:0 O_RDWR|O_NONBLOCK FD_CLOEXEC 247: S_IFIFO mode:0000 dev:324,0 ino:2048441 uid:0 gid:0 size:0 O_RDWR|O_NONBLOCK FD_CLOEXEC 258: S_IFIFO mode:0000 dev:324,0 ino:2042076 uid:0 gid:0 size:0 O_RDWR|O_NONBLOCK FD_CLOEXEC...
2004 Mar 26
1
nmbd dying
...= 0 write(5, "BORDER-ACCT\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 88) = 88 read(6, "ACCTMAX\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 88) = 88 open("/etc/hosts", O_RDONLY) = 9 fcntl64(9, F_GETFD) = 0 fcntl64(9, F_SETFD, FD_CLOEXEC) = 0 fstat64(9, {st_mode=S_IFREG|0644, st_size=154, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000 read(9, "# Generated automatically from h"..., 4096) = 154 read(9, "", 4096) = 0 close(9)...
2009 Jul 09
0
Hanging ssh sessions with openssh-5.1p1 and Solaris 8 & 10
...2 uid:0 gid:3 rdev:13,2 O_RDWR|O_LARGEFILE /devices/pseudo/mm at 0:null 2: S_IFCHR mode:0666 dev:356,0 ino:6815752 uid:0 gid:3 rdev:13,2 O_RDWR|O_LARGEFILE /devices/pseudo/mm at 0:null 3: S_IFDOOR mode:0444 dev:365,0 ino:92 uid:0 gid:0 size:0 O_RDONLY|O_LARGEFILE FD_CLOEXEC door to nscd[2394] /var/run/name_service_door 4: S_IFIFO mode:0000 dev:354,0 ino:16183814 uid:12962 gid:4640 size:0 O_RDWR|O_NONBLOCK FD_CLOEXEC 5: S_IFSOCK mode:0666 dev:363,0 ino:2848 uid:0 gid:0 size:0 O_RDWR|O_NONBLOCK SOCK_STREAM SO_REUSEADDR,SO_KEEPALI...
2005 Oct 11
3
dovecot won't launch
...MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x40334000 close(3) = 0 mprotect(0x40334000, 4096, PROT_READ) = 0 munmap(0x40017000, 24400) = 0 open("/etc/passwd", O_RDONLY) = 3 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=1274, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1274 close(3) = 0 munmap(0x40017000, 40...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...ily=AF_INET, sin_port=htons(41855), sin_addr=inet_addr("129.123.148.49")}, [1164321820984213520]) = 0 [pid 24068] getpeername(3, {sa_family=AF_INET, sin_port=htons(636), sin_addr=inet_addr("129.123.20.92")}, [68719476752]) = 0 [pid 24068] fcntl(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) [pid 24068] dup(3) = 7 [pid 24068] fcntl(7, F_SETFD, FD_CLOEXEC) = 0 [pid 24068] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 [pid 24068] close(3) = 0 [pid 24068] fcntl(8, F_GETFD) = 0 [pid 24068] dup2(8, 3) = 3 [pid 24068] fcntl(3...
2008 Sep 30
1
Broken pipe, x86_64 CentOS 5.2
...etsockname(3, {sa_family=AF_INET, sin_port=htons(56711), sin_addr=inet_addr("172.16.0.9")}, [16]) = 0 [pid 18441] getpeername(3, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr("172.16.2.24")}, [68719476752]) = 0 [pid 18441] fcntl(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) [pid 18441] dup(3) = 8 [pid 18441] fcntl(8, F_SETFD, FD_CLOEXEC) = 0 [pid 18441] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 9 [pid 18441] close(3) = 0 [pid 18441] fcntl(9, F_GETFD) = 0 [pid 18441] dup2(9, 3) = 3 [pid 18441] fcntl(3...
2007 Jan 24
1
[sfs@tc.umn.edu: Re: dovecot-auth file descriptor usage]
...ch has closed fds 0 and 1, so I presume it is proxying SSL: 11988: imap-login Current rlimit: unlimited file descriptors 2: S_IFIFO mode:0000 dev:295,0 ino:2692866 uid:0 gid:1 size:0 O_RDWR 4: S_IFCHR mode:0644 dev:287,0 ino:99614726 uid:0 gid:3 rdev:190,1 O_RDONLY|O_LARGEFILE FD_CLOEXEC /devices/pseudo/random at 0:urandom 5: S_IFIFO mode:0000 dev:295,0 ino:2692868 uid:65 gid:65 size:0 O_RDWR FD_CLOEXEC 6: S_IFIFO mode:0000 dev:295,0 ino:2692868 uid:65 gid:65 size:0 O_RDWR FD_CLOEXEC 7: S_IFSOCK mode:0666 dev:293,0 ino:33376 uid:0 gid:0 size:0 O_RDW...
2005 Mar 05
2
dovecot-pgsql.conf can't find in chroot? (debian)
...e -vffF /etc/init.d/dovecot start 1>& ~/dovecot.strace root at alfa:~# less ~/dovecot.strace [...] :/chroot [...] :/dovecot-pgsql.conf [pid 18211] open("/var/log/dovecot_info.log", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666 <u nfinished ...> [pid 18213] fcntl64(5, F_SETFD, FD_CLOEXEC <unfinished ...> [pid 18211] <... open resumed> ) = 5 [pid 18213] <... fcntl64 resumed> ) = 0 [pid 18211] fstat64(5, <unfinished ...> [pid 18209] <... fcntl64 resumed> ) = 0 [pid 18211] <... fstat64 resumed> {st_dev=makedev(22, 1), st_ino=917830,...