Changeset 12194
- Timestamp:
- 05/21/09 20:25:10 (4 years ago)
- Location:
- src/linux/brcm/linux.v24_2
- Files:
-
- 11 edited
-
include/linux/capability.h (modified) (2 diffs)
-
include/net/af_unix.h (modified) (1 diff)
-
kernel/exit.c (modified) (1 diff)
-
kernel/fork.c (modified) (2 diffs)
-
net/atm/svc.c (modified) (1 diff)
-
net/ipv4/netfilter/ipt_ROUTE.c (modified) (2 diffs)
-
net/netrom/af_netrom.c (modified) (1 diff)
-
net/rose/af_rose.c (modified) (1 diff)
-
net/unix/af_unix.c (modified) (3 diffs)
-
net/unix/garbage.c (modified) (5 diffs)
-
net/x25/af_x25.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/linux/brcm/linux.v24_2/include/linux/capability.h
r8761 r12194 99 99 100 100 #define CAP_FSETID 4 101 102 /* Used to decide between falling back on the old suser() or fsuser(). */103 104 #define CAP_FS_MASK 0x1f105 101 106 102 /* Overrides the restriction that the real or effective user ID of a … … 302 298 #endif 303 299 300 /* Used to decide between falling back on the old suser() or fsuser(). */ 301 302 #define CAP_FS_MASK (CAP_TO_MASK(CAP_CHOWN) \ 303 | CAP_TO_MASK(CAP_DAC_OVERRIDE) \ 304 | CAP_TO_MASK(CAP_DAC_READ_SEARCH) \ 305 | CAP_TO_MASK(CAP_FOWNER) \ 306 | CAP_TO_MASK(CAP_FSETID) \ 307 | CAP_TO_MASK(CAP_LINUX_IMMUTABLE) \ 308 | CAP_TO_MASK(CAP_MKNOD)) 309 304 310 #define CAP_EMPTY_SET to_cap_t(0) 305 311 #define CAP_FULL_SET to_cap_t(~0) -
src/linux/brcm/linux.v24_2/include/net/af_unix.h
r8761 r12194 6 6 typedef struct sock unix_socket; 7 7 extern void unix_gc(void); 8 extern void wait_for_unix_gc(void); 8 9 9 10 #define UNIX_HASH_SIZE 256 -
src/linux/brcm/linux.v24_2/kernel/exit.c
r8761 r12194 372 372 if(current->exit_signal != SIGCHLD && 373 373 ( current->parent_exec_id != t->self_exec_id || 374 current->self_exec_id != current->parent_exec_id) 375 && !capable(CAP_KILL)) 374 current->self_exec_id != current->parent_exec_id)) 376 375 current->exit_signal = SIGCHLD; 377 376 -
src/linux/brcm/linux.v24_2/kernel/fork.c
r8761 r12194 768 768 p->semundo = NULL; 769 769 770 /* Our parent execution domain becomes current domain771 These must match for thread signalling to apply */772 773 p->parent_exec_id = p->self_exec_id;774 775 770 /* ok, now we should be set up.. */ 776 771 p->swappable = 1; … … 807 802 if (!(clone_flags & CLONE_PARENT)) { 808 803 p->p_opptr = current; 804 p->parent_exec_id = p->self_exec_id; 809 805 if (!(p->ptrace & PT_PTRACED)) 810 806 p->p_pptr = current; -
src/linux/brcm/linux.v24_2/net/atm/svc.c
r8761 r12194 319 319 goto out; 320 320 } 321 if (test_bit(ATM_VF_LISTEN, &vcc->flags)) { 322 error = -EADDRINUSE; 323 goto out; 324 } 321 325 vcc->reply = WAITING; 322 326 add_wait_queue(&vcc->sleep,&wait); -
src/linux/brcm/linux.v24_2/net/ipv4/netfilter/ipt_ROUTE.c
r8761 r12194 392 392 static int __init init(void) 393 393 { 394 DEBUGP(KERN_ERR "registering ipt_ROUTE\n"); 394 395 /* Set up fake conntrack (stolen from raw.patch): 395 396 - to never be deleted, not in any hashes */ … … 407 408 408 409 if (ipt_register_target(&ipt_route_reg)) 410 { 411 DEBUGP(KERN_ERR "error while registering target ROUTE\n"); 409 412 return -EINVAL; 413 } 410 414 411 415 return 0; -
src/linux/brcm/linux.v24_2/net/netrom/af_netrom.c
r8761 r12194 1043 1043 SOCK_DEBUG(sk, "NET/ROM: sendto: Addresses built.\n"); 1044 1044 1045 /* Build a packet */ 1045 /* Build a packet - the conventional user limit is 236 bytes. We can 1046 do ludicrously large NetROM frames but must not overflow */ 1047 if (len > 65536) 1048 return -EMSGSIZE; 1049 1046 1050 SOCK_DEBUG(sk, "NET/ROM: sendto: building packet.\n"); 1047 1051 size = len + AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN; -
src/linux/brcm/linux.v24_2/net/rose/af_rose.c
r8761 r12194 1064 1064 /* Build a packet */ 1065 1065 SOCK_DEBUG(sk, "ROSE: sendto: building packet.\n"); 1066 /* Sanity check the packet size */ 1067 if (len > 65535) 1068 return -EMSGSIZE; 1069 1066 1070 size = len + AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + ROSE_MIN_LEN; 1067 1071 -
src/linux/brcm/linux.v24_2/net/unix/af_unix.c
r8761 r12194 375 375 sk_wake_async(skpair,1,POLL_HUP); 376 376 read_unlock(&skpair->callback_lock); 377 yield(); /* let the other side wake up */ 377 378 } 378 379 sock_put(skpair); /* It may now die */ … … 1162 1163 long timeo; 1163 1164 1165 wait_for_unix_gc(); 1166 1164 1167 err = -EOPNOTSUPP; 1165 1168 if (msg->msg_flags&MSG_OOB) … … 1291 1294 struct sk_buff *skb; 1292 1295 int sent=0; 1296 1297 wait_for_unix_gc(); 1293 1298 1294 1299 err = -EOPNOTSUPP; -
src/linux/brcm/linux.v24_2/net/unix/garbage.c
r8761 r12194 78 78 #include <linux/proc_fs.h> 79 79 #include <linux/tcp.h> 80 #include <linux/wait.h> 80 81 81 82 #include <net/sock.h> … … 89 90 90 91 static unix_socket *gc_current=GC_HEAD; /* stack of objects to mark */ 92 93 static DECLARE_WAIT_QUEUE_HEAD(unix_gc_wait); 91 94 92 95 atomic_t unix_tot_inflight = ATOMIC_INIT(0); … … 164 167 165 168 169 static int gc_in_progress; 170 171 void wait_for_unix_gc(void) 172 { 173 wait_event(unix_gc_wait, gc_in_progress == 0); 174 } 175 166 176 /* The external entry point: unix_gc() */ 167 177 … … 180 190 if (down_trylock(&unix_gc_sem)) 181 191 return; 192 193 if (gc_in_progress) 194 goto out; 195 196 gc_in_progress = 1; 182 197 183 198 read_lock(&unix_table_lock); … … 307 322 308 323 __skb_queue_purge(&hitlist); 324 gc_in_progress = 0; 325 wake_up(&unix_gc_wait); 326 out: 309 327 up(&unix_gc_sem); 310 328 } -
src/linux/brcm/linux.v24_2/net/x25/af_x25.c
r8761 r12194 906 906 } 907 907 908 /* Sanity check the packet size */ 909 if (len > 65535) 910 return -EMSGSIZE; 911 908 912 SOCK_DEBUG(sk, "x25_sendmsg: sendto: Addresses built.\n"); 909 913
Note: See TracChangeset
for help on using the changeset viewer.
