t, new struct called unix_skb_parms_scm had to be created,
because otherwise unix_skb_parms would be too big.
scm_get_current_procinfo is inspired by ./fs/proc/base.c.
Signed-off-by: Jan Kaluza
---
include/linux/socket.h | 2 ++
include/net/af_unix.h | 11 +++--
include/net/scm.h | 24 +
of the socket message can look it up.
This introduces a new SCM type called SCM_CGROUP to allow the direct
attaching of "cgroup_path" to SCM, which is significantly more
efficient and will reliably avoid the race with the round-trip over
procfs.
Signed-off-by: Jan Kaluza
---
include/linu
of the socket message can look it up.
This introduces a new SCM type called SCM_AUDIT to allow the direct
attaching of "loginuid" and "sessionid" to SCM, which is significantly more
efficient and will reliably avoid the race with the round-trip over
procfs.
Signed-off-by: Jan Kaluza
AX instead of PAGE_SIZE in SCM_CGROUP patch
- describe each patch individually
Jan Kaluza (3):
Send loginuid and sessionid in SCM_AUDIT
Send comm and cmdline in SCM_PROCINFO
Send cgroup_path in SCM_CGROUP
include/linux/socket.h | 9 ++
include/net/af_unix.h | 10 ++
include/net/scm.h
of PAGE_SIZE in SCM_CGROUP patch
- describe each patch individually
Jan Kaluza (3):
Send loginuid and sessionid in SCM_AUDIT
Send comm and cmdline in SCM_PROCINFO
Send cgroup_path in SCM_CGROUP
include/linux/socket.h | 9 ++
include/net/af_unix.h | 10 ++
include/net/scm.h | 67
of the socket message can look it up.
This introduces a new SCM type called SCM_AUDIT to allow the direct
attaching of loginuid and sessionid to SCM, which is significantly more
efficient and will reliably avoid the race with the round-trip over
procfs.
Signed-off-by: Jan Kaluza jkal...@redhat.com
unix_skb_parms_scm had to be created,
because otherwise unix_skb_parms would be too big.
scm_get_current_procinfo is inspired by ./fs/proc/base.c.
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include/linux/socket.h | 2 ++
include/net/af_unix.h | 11 +++--
include/net/scm.h | 24
of the socket message can look it up.
This introduces a new SCM type called SCM_CGROUP to allow the direct
attaching of cgroup_path to SCM, which is significantly more
efficient and will reliably avoid the race with the round-trip over
procfs.
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include
of the socket message can look it up.
This introduces a new SCM type called SCM_CGROUP to allow the direct
attaching of "cgroup_path" to SCM, which is significantly more
efficient and will reliably avoid the race with the round-trip over
procfs.
Signed-off-by: Jan Kaluza
---
include/linu
of the socket message can look it up.
This introduces a new SCM type called SCM_AUDIT to allow the direct
attaching of "loginuid" and "sessionid" to SCM, which is significantly more
efficient and will reliably avoid the race with the round-trip over
procfs.
Signed-off-by: Jan Kaluza
t, new struct called unix_skb_parms_scm had to be created,
because otherwise unix_skb_parms would be too big.
scm_get_current_procinfo is inspired by ./fs/proc/base.c.
Signed-off-by: Jan Kaluza
---
include/linux/socket.h | 2 ++
include/net/af_unix.h | 11 +++--
include/net/scm.h | 24 +
s, because current way of opening and
parsing /proc/$PID/* files is much more expensive than receiving these
metadata using SCM.
Changes in v3:
- Better description of patches (Thanks to Kay Sievers)
Changes in v2:
- use PATH_MAX instead of PAGE_SIZE in SCM_CGROUP patch
- describe each patch individ
current way of opening and
parsing /proc/$PID/* files is much more expensive than receiving these
metadata using SCM.
Changes in v3:
- Better description of patches (Thanks to Kay Sievers)
Changes in v2:
- use PATH_MAX instead of PAGE_SIZE in SCM_CGROUP patch
- describe each patch individually
Jan
of the socket message can look it up.
This introduces a new SCM type called SCM_CGROUP to allow the direct
attaching of cgroup_path to SCM, which is significantly more
efficient and will reliably avoid the race with the round-trip over
procfs.
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include
of the socket message can look it up.
This introduces a new SCM type called SCM_AUDIT to allow the direct
attaching of loginuid and sessionid to SCM, which is significantly more
efficient and will reliably avoid the race with the round-trip over
procfs.
Signed-off-by: Jan Kaluza jkal...@redhat.com
unix_skb_parms_scm had to be created,
because otherwise unix_skb_parms would be too big.
scm_get_current_procinfo is inspired by ./fs/proc/base.c.
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include/linux/socket.h | 2 ++
include/net/af_unix.h | 11 +++--
include/net/scm.h | 24
s received using UNIX socket.
Changes in v2:
- use PATH_MAX instead of PAGE_SIZE in SCM_CGROUP patch
- describe each patch individually
Jan Kaluza (3):
Send loginuid and sessionid in SCM_AUDIT
Send comm and cmdline in SCM_PROCINFO
Send cgroup_path in SCM_CGROUP
include/linux/soc
Add new SCM type called SCM_CGROUP to send "cgroup_path" in SCM.
This is useful for journald (systemd logging daemon) to get additional context
with each log line received using UNIX socket.
Signed-off-by: Jan Kaluza
---
include/linux/socket.h | 1 +
include/net/af_unix.h | 1 +
i
Add new SCM type called SCM_AUDIT to send loginuid and sessionuid in SCM.
This is useful for journald (systemd logging daemon) to get additional context
with each log line received using UNIX socket.
Signed-off-by: Jan Kaluza
---
include/linux/socket.h | 6 ++
include/net/af_unix.h | 2
cause
unix_skb_parms was too big. This change made a patch more complex, because
this new struct has to be allocated/freed.
scm_get_current_procinfo is inspired by ./fs/proc/base.c.
Signed-off-by: Jan Kaluza
---
include/linux/socket.h | 2 ++
include/net/af_unix.h | 11 +++--
include
big. This change made a patch more complex, because
this new struct has to be allocated/freed.
scm_get_current_procinfo is inspired by ./fs/proc/base.c.
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include/linux/socket.h | 2 ++
include/net/af_unix.h | 11 +++--
include/net/scm.h
Add new SCM type called SCM_CGROUP to send cgroup_path in SCM.
This is useful for journald (systemd logging daemon) to get additional context
with each log line received using UNIX socket.
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include/linux/socket.h | 1 +
include/net/af_unix.h | 1
Add new SCM type called SCM_AUDIT to send loginuid and sessionuid in SCM.
This is useful for journald (systemd logging daemon) to get additional context
with each log line received using UNIX socket.
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include/linux/socket.h | 6 ++
include/net
using UNIX socket.
Changes in v2:
- use PATH_MAX instead of PAGE_SIZE in SCM_CGROUP patch
- describe each patch individually
Jan Kaluza (3):
Send loginuid and sessionid in SCM_AUDIT
Send comm and cmdline in SCM_PROCINFO
Send cgroup_path in SCM_CGROUP
include/linux/socket.h | 9
s received using UNIX socket.
Jan Kaluza (3):
Send loginuid and sessionid in SCM_AUDIT
Send comm and cmdline in SCM_PROCINFO
Send cgroup_path in SCM_CGROUP
include/linux/socket.h | 9 ++
include/net/af_unix.h | 10 ++
include/net/scm.h | 67 +++
Signed-off-by: Jan Kaluza
---
include/linux/socket.h | 2 ++
include/net/af_unix.h | 11 +++--
include/net/scm.h | 24 +++
net/core/scm.c | 65 ++
net/unix/af_unix.c | 57
Signed-off-by: Jan Kaluza
---
include/linux/socket.h | 1 +
include/net/af_unix.h | 1 +
include/net/scm.h | 15 +++
net/core/scm.c | 18 ++
net/unix/af_unix.c | 20
5 files changed, 55 insertions(+)
diff --git a/include/linux
Signed-off-by: Jan Kaluza
---
include/linux/socket.h | 6 ++
include/net/af_unix.h | 2 ++
include/net/scm.h | 28 ++--
net/unix/af_unix.c | 7 +++
4 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/include/linux/socket.h b/include/linux
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include/linux/socket.h | 1 +
include/net/af_unix.h | 1 +
include/net/scm.h | 15 +++
net/core/scm.c | 18 ++
net/unix/af_unix.c | 20
5 files changed, 55 insertions(+)
diff
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include/linux/socket.h | 2 ++
include/net/af_unix.h | 11 +++--
include/net/scm.h | 24 +++
net/core/scm.c | 65 ++
net/unix/af_unix.c | 57
Signed-off-by: Jan Kaluza jkal...@redhat.com
---
include/linux/socket.h | 6 ++
include/net/af_unix.h | 2 ++
include/net/scm.h | 28 ++--
net/unix/af_unix.c | 7 +++
4 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/include/linux
using UNIX socket.
Jan Kaluza (3):
Send loginuid and sessionid in SCM_AUDIT
Send comm and cmdline in SCM_PROCINFO
Send cgroup_path in SCM_CGROUP
include/linux/socket.h | 9 ++
include/net/af_unix.h | 10 ++
include/net/scm.h | 67 ++--
net
32 matches
Mail list logo