Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm...
authorDavid S. Miller <davem@davemloft.net>
Fri, 24 Aug 2012 22:54:37 +0000 (18:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Aug 2012 22:54:37 +0000 (18:54 -0400)
This is an initial merge in of Eric Biederman's work to start adding
user namespace support to the networking.

Signed-off-by: David S. Miller <davem@davemloft.net>
15 files changed:
1  2 
drivers/net/tun.c
fs/namei.c
include/net/ipv6.h
include/net/sock.h
include/net/tcp.h
net/core/dev.c
net/core/scm.c
net/core/sock.c
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c
net/ipv6/tcp_ipv6.c
net/key/af_key.c
net/netlink/af_netlink.c
net/packet/af_packet.c
net/sctp/proc.c

Simple merge
diff --cc fs/namei.c
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc net/core/dev.c
Simple merge
diff --cc net/core/scm.c
Simple merge
diff --cc net/core/sock.c
Simple merge
index 1e15c5be04e7fff1a476c87d68db870ab68655c9,642be8a4c6a33d2c88fa1de5f68c2579eb7b9920..36f02f954ac136e0efe7c2d22aedbda0014a8c58
@@@ -2393,10 -2382,10 +2393,10 @@@ void tcp_proc_unregister(struct net *ne
  EXPORT_SYMBOL(tcp_proc_unregister);
  
  static void get_openreq4(const struct sock *sk, const struct request_sock *req,
-                        struct seq_file *f, int i, int uid, int *len)
+                        struct seq_file *f, int i, kuid_t uid, int *len)
  {
        const struct inet_request_sock *ireq = inet_rsk(req);
 -      int ttd = req->expires - jiffies;
 +      long delta = req->expires - jiffies;
  
        seq_printf(f, "%4d: %08X:%04X %08X:%04X"
                " %02X %08X:%08X %02X:%08lX %08X %5d %8d %u %d %pK%n",
                TCP_SYN_RECV,
                0, 0, /* could print option size, but that is af dependent. */
                1,    /* timers active (only the expire timer) */
 -              jiffies_to_clock_t(ttd),
 +              jiffies_delta_to_clock_t(delta),
                req->retrans,
-               uid,
+               from_kuid_munged(seq_user_ns(f), uid),
                0,  /* non standard timer */
                0, /* open_requests have no inode */
                atomic_read(&sk->sk_refcnt),
@@@ -2459,9 -2448,9 +2459,9 @@@ static void get_tcp4_sock(struct sock *
                tp->write_seq - tp->snd_una,
                rx_queue,
                timer_active,
 -              jiffies_to_clock_t(timer_expires - jiffies),
 +              jiffies_delta_to_clock_t(timer_expires - jiffies),
                icsk->icsk_retransmits,
-               sock_i_uid(sk),
+               from_kuid_munged(seq_user_ns(f), sock_i_uid(sk)),
                icsk->icsk_probes_out,
                sock_i_ino(sk),
                atomic_read(&sk->sk_refcnt), sk,
diff --cc net/ipv4/udp.c
Simple merge
index cd49de3678fb4f3a9503195142148ea021463533,4b5b335ebde132a09c7328e11e4e563fe8f44d11..f99b81d53cca78f7a34b28f98b1886c93800bf89
@@@ -1900,9 -1875,9 +1900,9 @@@ static void get_tcp6_sock(struct seq_fi
                   tp->write_seq-tp->snd_una,
                   (sp->sk_state == TCP_LISTEN) ? sp->sk_ack_backlog : (tp->rcv_nxt - tp->copied_seq),
                   timer_active,
 -                 jiffies_to_clock_t(timer_expires - jiffies),
 +                 jiffies_delta_to_clock_t(timer_expires - jiffies),
                   icsk->icsk_retransmits,
-                  sock_i_uid(sp),
+                  from_kuid_munged(seq_user_ns(seq), sock_i_uid(sp)),
                   icsk->icsk_probes_out,
                   sock_i_ino(sp),
                   atomic_read(&sp->sk_refcnt), sp,
Simple merge
Simple merge
Simple merge
diff --cc net/sctp/proc.c
Simple merge