]> granicus.if.org Git - strace/commitdiff
net.c: move fallback definition of SCM_SECURITY to xlat/
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 18 Nov 2015 23:11:34 +0000 (23:11 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 18 Nov 2015 23:11:34 +0000 (23:11 +0000)
* net.c: Move fallback definition of SCM_SECURITY ...
* xlat/scmvals.in: ... here.

net.c
xlat/scmvals.in

diff --git a/net.c b/net.c
index 7e8586ac69795eb19586c6b3e34bf91dbb0929a4..59cbe93eb47e6f94e4d1120ac597d4ab9d8b39b4 100644 (file)
--- a/net.c
+++ b/net.c
@@ -290,9 +290,6 @@ printsock(struct tcb *tcp, long addr, int addrlen)
 }
 
 #ifdef HAVE_SENDMSG
-# ifndef SCM_SECURITY
-#  define SCM_SECURITY 0x03
-# endif
 # include "xlat/scmvals.h"
 
 #if SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4
index 86d9a15b0134ddd0f286c4a9c0431ecfc8995518..3d61f9ef086ca7f58c0216df086400ff6a6077e6 100644 (file)
@@ -1,3 +1,3 @@
-SCM_RIGHTS
-SCM_CREDENTIALS
-SCM_SECURITY
+SCM_RIGHTS     1
+SCM_CREDENTIALS        2
+SCM_SECURITY   3