)]}'
{
  "commit": "113a0e4590881ce579ca992a80ddc562b3372ede",
  "tree": "29dd1cd1c5f594efb51cdf9530a90ba2f3f2854e",
  "parents": [
    "454804ab0302b354e35d992d08e53fe03313baaf"
  ],
  "author": {
    "name": "etienne",
    "email": "etienne.basset@numericable.fr",
    "time": "Wed Mar 04 07:33:51 2009 +0100"
  },
  "committer": {
    "name": "James Morris",
    "email": "jmorris@namei.org",
    "time": "Thu Mar 05 08:30:01 2009 +1100"
  },
  "message": "smack: fixes for unlabeled host support\n\nThe following patch (against 2.6.29rc5) fixes a few issues in the\nsmack/netlabel \"unlabeled host support\" functionnality that was added in\n2.6.29rc.  It should go in before -final.\n\n1) smack_host_label disregard a \"0.0.0.0/0 @\" rule (or other label),\npreventing \u0027tagged\u0027 tasks to access Internet (many systems drop packets with\nIP options)\n\n2) netmasks were not handled correctly, they were stored in a way _not\nequivalent_ to conversion to be32 (it was equivalent for /0, /8, /16, /24,\n/32 masks but not other masks)\n\n3) smack_netlbladdr prefixes (IP/mask) were not consistent (mask\u0026IP was not\ndone), so there could have been different list entries for the same IP\nprefix; if those entries had different labels, well ...\n\n4) they were not sorted\n\n1) 2) 3) are bugs, 4) is a more cosmetic issue.\nThe patch :\n\n-creates a new helper smk_netlbladdr_insert to insert a smk_netlbladdr,\n-sorted by netmask length\n\n-use the new sorted nature of  smack_netlbladdrs list to simplify\n smack_host_label : the first match _will_ be the more specific\n\n-corrects endianness issues in smk_write_netlbladdr \u0026  netlbladdr_seq_show\n\nSigned-off-by: \u003cetienne.basset@numericable.fr\u003e\nAcked-by: Casey Schaufler \u003ccasey@schaufler-ca.com\u003e\nReviewed-by: Paul Moore \u003cpaul.moore@hp.com\u003e\nSigned-off-by: James Morris \u003cjmorris@namei.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fd8d1eb437006337ec3fb4824dc8ba3042aa07fb",
      "old_mode": 33188,
      "old_path": "security/smack/smackfs.c",
      "new_id": "a1b57e4dba3e0865902a7a3691ee1d3afc1f8748",
      "new_mode": 33188,
      "new_path": "security/smack/smackfs.c"
    }
  ]
}
