aboutsummaryrefslogtreecommitdiffstats
path: root/security
Commit message (Expand)AuthorAge
* devcgroup: skip superfluous checks when found the DEV_ALL elemLi Zefan2009-06-18
* Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds...David S. Miller2009-06-15
|\
| * Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmo...Linus Torvalds2009-06-11
| |\
| | * TOMOYO: Add description of lists and structures.Tetsuo Handa2009-06-08
| | * TOMOYO: Remove unused field.Tetsuo Handa2009-06-08
| | * Merge branch 'master' into nextJames Morris2009-06-08
| | |\
| | * | integrity: ima audit dentry_open failureMimi Zohar2009-06-04
| | * | TOMOYO: Remove unused parameter.Tetsuo Handa2009-06-04
| | * | security: use mmap_min_addr indepedently of security modelsChristoph Lameter2009-06-03
| | * | TOMOYO: Simplify policy reader.Tetsuo Handa2009-06-02
| | * | TOMOYO: Remove redundant markers.Tetsuo Handa2009-06-02
| | * | SELinux: define audit permissions for audit tree netlink messagesEric Paris2009-06-02
| | * | TOMOYO: Remove unused mutex.Tetsuo Handa2009-06-02
| | * | tomoyo: avoid get+put of task_structSerge E. Hallyn2009-06-02
| | * | smack: Remove redundant initialization.Tetsuo Handa2009-05-27
| | * | rootplug: Remove redundant initialization.Tetsuo Handa2009-05-26
| | * | Merge branch 'master' into nextJames Morris2009-05-22
| | |\ \
| | * | | smack: do not beyond ARRAY_SIZE of dataRoel Kluin2009-05-21
| | * | | integrity: path_check updateMimi Zohar2009-05-21
| | * | | IMA: Add __init notation to ima functionsEric Paris2009-05-21
| | * | | IMA: Minimal IMA policy and boot param for TCB IMA policyEric Paris2009-05-21
| | * | | selinux: remove obsolete read buffer limit from sel_read_boolStephen Smalley2009-05-19
| | * | | SELinux: move SELINUX_MAGIC into magic.hEric Paris2009-05-18
| | * | | IMA: do not measure everything opened by root by defaultEric Paris2009-05-14
| | * | | IMA: remove read permissions on the ima policy fileEric Paris2009-05-14
| | * | | securityfs: securityfs_remove should handle IS_ERR pointersEric Paris2009-05-11
| | * | | IMA: open all files O_LARGEFILEEric Paris2009-05-11
| | * | | IMA: Handle dentry_open failuresEric Paris2009-05-11
| | * | | IMA: use current_cred() instead of current->credEric Paris2009-05-11
| | * | | Merge branch 'master' into nextJames Morris2009-05-08
| | |\ \ \
| | * | | | integrity: remove __setup auditing msgsMimi Zohar2009-05-05
| | * | | | integrity: use audit_log_stringMimi Zohar2009-05-05
| | * | | | integrity: lsm audit rule matching fixMimi Zohar2009-05-05
| | * | | | selinux: selinux_bprm_committed_creds() should wake up ->real_parent, not ->p...Oleg Nesterov2009-04-29
| | * | | | SELinux: Don't flush inherited SIGKILL during execve()David Howells2009-04-29
| | * | | | SELinux: drop secondary_ops->sysctlEric Paris2009-04-29
| | * | | | smack: implement logging V3Etienne Basset2009-04-13
| | * | | | smack: implement logging V3Etienne Basset2009-04-13
| | * | | | tomoyo: remove "undelete domain" command.Tetsuo Handa2009-04-06
| | * | | | don't raise all privs on setuid-root file with fE set (v2)Serge E. Hallyn2009-04-02
| | * | | | Permissive domain in userspace object managerKaiGai Kohei2009-04-01
| * | | | | Merge branch 'rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds2009-06-10
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | |
| | * | | | rculist: use list_entry_rcu in places where it's appropriateJiri Pirko2009-04-15
| * | | | | tomoyo: add missing call to cap_bprm_set_credsHerton Ronaldo Krzesinski2009-05-26
| | |_|_|/ | |/| | |
* / | | | net: skb->dst accessorsEric Dumazet2009-06-03
|/ / / /
* | | / Reduce path_lookup() abusesAl Viro2009-05-09
| |_|/ |/| |
* | | selinux: Fix send_sigiotask hookStephen Smalley2009-05-04
* | | Smack: check for SMACK xattr validity in smack_inode_setxattrEtienne Basset2009-04-17
|/ /
* | tomoyo: version bump to 2.2.0.Tetsuo Handa2009-04-13
* | keys: Handle there being no fallback destination keyring for request_key()David Howells2009-04-09
snd_una = tp->snd_una; return w->cumul_ack; } /* * TCP Westwood * Here limit is evaluated as Bw estimation*RTTmin (for obtaining it * in packets we use mss_cache). Rttmin is guaranteed to be >= 2 * so avoids ever returning 0. */ static u32 tcp_westwood_bw_rttmin(const struct sock *sk) { const struct tcp_sock *tp = tcp_sk(sk); const struct westwood *w = inet_csk_ca(sk); return max_t(u32, (w->bw_est * w->rtt_min) / tp->mss_cache, 2); } static void tcp_westwood_event(struct sock *sk, enum tcp_ca_event event) { struct tcp_sock *tp = tcp_sk(sk); struct westwood *w = inet_csk_ca(sk); switch (event) { case CA_EVENT_FAST_ACK: westwood_fast_bw(sk); break; case CA_EVENT_COMPLETE_CWR: tp->snd_cwnd = tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); break; case CA_EVENT_FRTO: tp->snd_ssthresh = tcp_westwood_bw_rttmin(sk); /* Update RTT_min when next ack arrives */ w->reset_rtt_min = 1; break; case CA_EVENT_SLOW_ACK: westwood_update_window(sk); w->bk += westwood_acked_count(sk); update_rtt_min(w); break; default: /* don't care */ break; } } /* Extract info for Tcp socket info provided via netlink. */ static void tcp_westwood_info(struct sock *sk, u32 ext, struct sk_buff *skb) { const struct westwood *ca = inet_csk_ca(sk); if (ext & (1 << (INET_DIAG_VEGASINFO - 1))) { struct tcpvegas_info info = { .tcpv_enabled = 1, .tcpv_rtt = jiffies_to_usecs(ca->rtt), .tcpv_minrtt = jiffies_to_usecs(ca->rtt_min), }; nla_put(skb, INET_DIAG_VEGASINFO, sizeof(info), &info); } } static struct tcp_congestion_ops tcp_westwood = { .init = tcp_westwood_init, .ssthresh = tcp_reno_ssthresh, .cong_avoid = tcp_reno_cong_avoid, .min_cwnd = tcp_westwood_bw_rttmin, .cwnd_event = tcp_westwood_event, .get_info = tcp_westwood_info, .pkts_acked = tcp_westwood_pkts_acked, .owner = THIS_MODULE, .name = "westwood" }; static int __init tcp_westwood_register(void) { BUILD_BUG_ON(sizeof(struct westwood) > ICSK_CA_PRIV_SIZE); return tcp_register_congestion_control(&tcp_westwood); } static void __exit tcp_westwood_unregister(void) { tcp_unregister_congestion_control(&tcp_westwood); } module_init(tcp_westwood_register); module_exit(tcp_westwood_unregister); MODULE_AUTHOR("Stephen Hemminger, Angelo Dell'Aera"); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("TCP Westwood+");