Displaying 20 results from an estimated 223 matches for "f_setfd".
2008 Jan 17
1
convert plugin fails - drops root privileges then tries to create file in /
...E, MAP_PRIVATE|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(0xb7f27...
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).
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:
~...
2016 Dec 20
0
[Bug 1104] New: Use close on exec flags instead of fcntl
...er-buglog 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 &...
2008 Jul 07
1
SIGPIPE in assorted apps after "yum update"
...EARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x2aaaaad30db0) = 23938
[pid 23937] exit_group(0) = ?
getsockname(3, 0x7fff6b7728a0, [128]) = -1 ENOTSOCK (Socket
operation on non-socket)
fcntl(3, F_GETFD) = 0
dup(3) = 7
fcntl(7, F_SETFD, 0) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8
close(3) = 0
fcntl(8, F_GETFD) = 0
dup2(8, 3) = 3
fcntl(3, F_SETFD, 0) = 0
close(8) = 0
write(3...
2003 Nov 02
2
dies on start-up: Auth process
...ARGEFILE|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)...
2004 Jul 29
2
Samba 3.0.x and high processor utilication caused by /etc/passwd access
...5 root 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(0...
2008 Sep 30
1
Broken pipe, x86_64 CentOS 5.2
..."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, F_SETFD, 0) = 0
[pid 18441] close(9) = 0
[pid...
2007 Jul 16
1
Tripp Lite OmniSV1500XL
...OT_READ) = 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
fsta...
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
2002 Aug 07
1
Help/Note: Bug in samba-2.2.5/msdfs
...uot;, 0xFFBEEF70) = 0
stat64("run/data/fracas/hs-handler/logfiles/neuer ordner", 0xFFBEEF70) Err#2 ENOENT
stat64("run/data/fracas/hs-handler/logfiles/neuer ordner", 0xFFBEEF70) Err#2 ENOENT
open64("run/data/fracas/hs-handler/logfiles", O_RDONLY|O_NDELAY) = 25
fcntl(25, F_SETFD, 0x00000001) = 0
fstat64(25, 0xFFBEE118) = 0
getdents64(25, 0x0029A5D0, 1048) = 896
getdents64(25, 0x0029A5D0, 1048) = 88
getdents64(25, 0x0029A5D0, 1048) = 0
close(25) = 0
stat64("run/data/fracas/hs-handler/logfiles/neuer ordner", 0xFFBEF080) Err#2 ENOENT
send(12, "\0\0\...
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...
2016 Aug 07
2
debian (1.2.22-3~bpo8+1) package build failure
...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/backends/flint_lock.cc
> @@ -108,6 +108,10 @@ FlintLock::lock(bool exclusive, string & explanation) {
> return ((errno == EMFILE || errno == ENFILE) ? F...
2005 Oct 11
3
dovecot won't launch
...PRIVATE|
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(0x...
2005 Mar 05
2
dovecot-pgsql.conf can't find in chroot? (debian)
...:~# strace -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_...
2009 Jul 31
1
nut and megatec_usb
...PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f0be9228000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
...
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 4 entries */, 4096) = 96
close(4) = 0
open("/dev/bus/usb", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
getdents(4, /* 4...
2003 Jan 06
0
smbd using alot of cpu
.........................................................................................................................
= 0
open("/dev/telnet", O_RDONLY, 0140100)
...............................................................................................................
= 23
fcntl(23, F_SETFD, 1)
................................................................................................................................
= 0
getdents(23, 0x40243dc0, 8192)
.......................................................................................................................
= 48
getden...
2015 Jun 09
4
File copy operation blocks on Samba share
...:
open("/mnt/Share/file.odt", O_RDONLY) = 7
ioctl(7, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fff3cdd9f20) = -1
ENOTTY (Inappropriate ioctl for device)
lseek(7, 0, SEEK_CUR) = 0
fstat(7, {st_mode=S_IFREG|0644, st_size=131018, ...}) = 0
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
open("/usr/local/share/dest.odt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 8
ioctl(8, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fff3cdd9f20) = -1
ENOTTY (Inappropriate ioctl for device)
lseek(8, 0, SEEK_CUR) = 0
fstat(8, {st_m...
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
encountered a similar build problem in a sid chroot
2016 Oct 13
3
Bug 6870 resurfaced in Samba 4.2.10
...sulted in the following:
11:41:52 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11 <0.000027>
11:41:52 fcntl(11, F_GETFL) = 0x2 (flags O_RDWR) <0.000015>
11:41:52 fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0 <0.000016>
11:41:52 fcntl(11, F_GETFD) = 0 <0.000015>
11:41:52 fcntl(11, F_SETFD, FD_CLOEXEC) = 0 <0.000016>
11:41:52 connect(11, {sa_family=AF_INET, sin_port=htons(389),
sin_addr=inet_addr("192.168.81.132")}, 16) = 0 <0.000050>
11:41:52 socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 12 <0.000025>
11:41:52 fcntl(12, F_GETFL) = 0x2 (flags O_RDWR) <0.00...