[PATCH v4 2/3] Send comm and cmdline in SCM_PROCINFO

2014-01-13 Thread 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 +

[PATCH v4 3/3] Send cgroup_path in SCM_CGROUP

2014-01-13 Thread Jan Kaluza
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

[PATCH v4 1/3] Send loginuid and sessionid in SCM_AUDIT

2014-01-13 Thread Jan Kaluza
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

[PATCH v4 0/3] Send audit/procinfo/cgroup data in socket-level control message

2014-01-13 Thread 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

[PATCH v4 0/3] Send audit/procinfo/cgroup data in socket-level control message

2014-01-13 Thread Jan Kaluza
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

[PATCH v4 1/3] Send loginuid and sessionid in SCM_AUDIT

2014-01-13 Thread Jan Kaluza
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

[PATCH v4 2/3] Send comm and cmdline in SCM_PROCINFO

2014-01-13 Thread Jan Kaluza
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

[PATCH v4 3/3] Send cgroup_path in SCM_CGROUP

2014-01-13 Thread Jan Kaluza
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

[PATCH v3 3/3] Send cgroup_path in SCM_CGROUP

2013-09-04 Thread Jan Kaluza
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

[PATCH v3 1/3] Send loginuid and sessionid in SCM_AUDIT

2013-09-04 Thread Jan Kaluza
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

[PATCH v3 2/3] Send comm and cmdline in SCM_PROCINFO

2013-09-04 Thread 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 +

[PATCH v3 0/3] Send audit/procinfo/cgroup data in socket-level control message

2013-09-04 Thread Jan Kaluza
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

[PATCH v3 0/3] Send audit/procinfo/cgroup data in socket-level control message

2013-09-04 Thread Jan Kaluza
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

[PATCH v3 3/3] Send cgroup_path in SCM_CGROUP

2013-09-04 Thread Jan Kaluza
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

[PATCH v3 1/3] Send loginuid and sessionid in SCM_AUDIT

2013-09-04 Thread Jan Kaluza
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

[PATCH v3 2/3] Send comm and cmdline in SCM_PROCINFO

2013-09-04 Thread Jan Kaluza
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

[PATCH v2 0/3] Send audit/procinfo/cgroup data in socket-level control message

2013-08-29 Thread Jan Kaluza
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

[PATCH v2 3/3] Send cgroup_path in SCM_CGROUP

2013-08-29 Thread Jan Kaluza
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

[PATCH v2 1/3] Send loginuid and sessionid in SCM_AUDIT

2013-08-29 Thread Jan Kaluza
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

[PATCH v2 2/3] Send comm and cmdline in SCM_PROCINFO

2013-08-29 Thread Jan Kaluza
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

[PATCH v2 2/3] Send comm and cmdline in SCM_PROCINFO

2013-08-29 Thread Jan Kaluza
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

[PATCH v2 3/3] Send cgroup_path in SCM_CGROUP

2013-08-29 Thread Jan Kaluza
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

[PATCH v2 1/3] Send loginuid and sessionid in SCM_AUDIT

2013-08-29 Thread Jan Kaluza
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

[PATCH v2 0/3] Send audit/procinfo/cgroup data in socket-level control message

2013-08-29 Thread Jan Kaluza
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

[PATCH 0/3] Send audit/procinfo/cgroup data in socket-level control message

2013-08-27 Thread Jan Kaluza
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 +++

[PATCH 2/3] Send comm and cmdline in SCM_PROCINFO

2013-08-27 Thread Jan Kaluza
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

[PATCH 3/3] Send cgroup_path in SCM_CGROUP

2013-08-27 Thread Jan Kaluza
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

[PATCH 1/3] Send loginuid and sessionid in SCM_AUDIT

2013-08-27 Thread Jan Kaluza
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

[PATCH 3/3] Send cgroup_path in SCM_CGROUP

2013-08-27 Thread Jan Kaluza
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

[PATCH 2/3] Send comm and cmdline in SCM_PROCINFO

2013-08-27 Thread Jan Kaluza
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

[PATCH 1/3] Send loginuid and sessionid in SCM_AUDIT

2013-08-27 Thread Jan Kaluza
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

[PATCH 0/3] Send audit/procinfo/cgroup data in socket-level control message

2013-08-27 Thread Jan Kaluza
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