1. 09 11月, 2015 2 次提交
  2. 23 10月, 2015 1 次提交
  3. 22 10月, 2015 11 次提交
  4. 21 10月, 2015 7 次提交
    • D
      KEYS: Merge the type-specific data with the payload data · 146aa8b1
      David Howells 提交于
      Merge the type-specific data with the payload data into one four-word chunk
      as it seems pointless to keep them separate.
      
      Use user_key_payload() for accessing the payloads of overloaded
      user-defined keys.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      cc: linux-cifs@vger.kernel.org
      cc: ecryptfs@vger.kernel.org
      cc: linux-ext4@vger.kernel.org
      cc: linux-f2fs-devel@lists.sourceforge.net
      cc: linux-nfs@vger.kernel.org
      cc: ceph-devel@vger.kernel.org
      cc: linux-ima-devel@lists.sourceforge.net
      146aa8b1
    • D
      KEYS: Provide a script to extract a module signature · 4adc605e
      David Howells 提交于
      The supplied script takes a signed module file and extracts the tailmost
      signature (there could theoretically be more than one) and dumps all or
      part of it or the unsigned file to stdout.
      
      Call as:
      
      	scripts/extract-module-sig.pl -[0adnks] module-file >out
      
      where the initial flag indicates which bit of the signed file you want dumping
      to stdout:
      
       (*) "-0".  Dumps the unsigned data with the signature stripped.
      
       (*) "-a".  Dumps all of the signature data, including the magic number.
      
       (*) "-d".  Dumps the signature information block as a sequence of decimal
           	    numbers in text form with spaces between (crypto algorithm type,
           	    hash type, identifier type, signer's name length, key identifier
           	    length and signature length).
      
       (*) "-n".  Dumps the signer's name contents.
      
       (*) "-k".  Dumps the key identifier contents.
      
       (*) "-s".  Dumps the cryptographic signature contents.
      
      In the case that the signature is a PKCS#7 (or CMS) message, -n and -k will
      print a warning to stderr and dump nothing to stdout, but will otherwise
      complete okay; the entire PKCS#7/CMS message will be dumped by "-s"; and "-d"
      will show "0 0 2 0 0 <pkcs#7-msg-len>".
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      4adc605e
    • D
      KEYS: Provide a script to extract the sys cert list from a vmlinux file · 2221a6ee
      David Howells 提交于
      The supplied script takes a vmlinux file - and if necessary a System.map
      file - locates the system certificates list and extracts it to the named
      file.
      
      Call as:
      
          ./scripts/extract-sys-certs vmlinux certs
      
      if vmlinux contains symbols and:
      
          ./scripts/extract-sys-certs -s System.map vmlinux certs
      
      if it does not.
      
      It prints something like the following to stdout:
      
      	Have 27 sections
      	No symbols in vmlinux, trying System.map
      	Have 80088 symbols
      	Have 1346 bytes of certs at VMA 0xffffffff8201c540
      	Certificate list in section .init.data
      	Certificate list at file offset 0x141c540
      
      If vmlinux contains symbols then that is used rather than System.map - even
      if one is given.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      2221a6ee
    • I
      keys: Be more consistent in selection of union members used · 27720e75
      Insu Yun 提交于
      key->description and key->index_key.description are same because
      they are unioned. But, for readability, using same name for
      duplication and validation seems better.
      Signed-off-by: NInsu Yun <wuninsu@gmail.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      27720e75
    • P
      certs: add .gitignore to stop git nagging about x509_certificate_list · 48dbc164
      Paul Gortmaker 提交于
      Currently we see this in "git status" if we build in the source dir:
      
      Untracked files:
        (use "git add <file>..." to include in what will be committed)
      
              certs/x509_certificate_list
      
      It looks like it used to live in kernel/ so we squash that .gitignore
      entry at the same time.  I didn't bother to dig through git history to
      see when it moved, since it is just a minor annoyance at most.
      
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: keyrings@linux-nfs.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      48dbc164
    • G
      KEYS: use kvfree() in add_key · d0e0eba0
      Geliang Tang 提交于
      There is no need to make a flag to tell that this memory is allocated by
      kmalloc or vmalloc. Just use kvfree to free the memory.
      Signed-off-by: NGeliang Tang <geliangtang@163.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      d0e0eba0
    • J
  5. 20 10月, 2015 2 次提交
    • J
      Merge branch 'next' of... · fbf98265
      James Morris 提交于
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity into next
      fbf98265
    • Z
      Smack: limited capability for changing process label · 38416e53
      Zbigniew Jasinski 提交于
      This feature introduces new kernel interface:
      
      - <smack_fs>/relabel-self - for setting transition labels list
      
      This list is used to control smack label transition mechanism.
      List is set by, and per process. Process can transit to new label only if
      label is on the list. Only process with CAP_MAC_ADMIN capability can add
      labels to this list. With this list, process can change it's label without
      CAP_MAC_ADMIN but only once. After label changing, list is unset.
      
      Changes in v2:
      * use list_for_each_entry instead of _rcu during label write
      * added missing description in security/Smack.txt
      
      Changes in v3:
      * squashed into one commit
      
      Changes in v4:
      * switch from global list to per-task list
      * since the per-task list is accessed only by the task itself
        there is no need to use synchronization mechanisms on it
      
      Changes in v5:
      * change smackfs interface of relabel-self to the one used for onlycap
        multiple labels are accepted, separated by space, which
        replace the previous list upon write
      Signed-off-by: NZbigniew Jasinski <z.jasinski@samsung.com>
      Signed-off-by: NRafal Krypa <r.krypa@samsung.com>
      Acked-by: NCasey Schaufler <casey@schaufler-ca.com>
      38416e53
  6. 19 10月, 2015 17 次提交