LCOV - code coverage report
Current view: top level - include/keys - request_key_auth-type.h (source / functions) Hit Total Coverage
Test: Real Lines: 0 1 0.0 %
Date: 2020-10-17 15:46:16 Functions: 0 0 -
Legend: Neither, QEMU, Real, Both Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: GPL-2.0-or-later */
       2                 :            : /* request_key authorisation token key type
       3                 :            :  *
       4                 :            :  * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
       5                 :            :  * Written by David Howells (dhowells@redhat.com)
       6                 :            :  */
       7                 :            : 
       8                 :            : #ifndef _KEYS_REQUEST_KEY_AUTH_TYPE_H
       9                 :            : #define _KEYS_REQUEST_KEY_AUTH_TYPE_H
      10                 :            : 
      11                 :            : #include <linux/key.h>
      12                 :            : 
      13                 :            : /*
      14                 :            :  * Authorisation record for request_key().
      15                 :            :  */
      16                 :            : struct request_key_auth {
      17                 :            :         struct rcu_head         rcu;
      18                 :            :         struct key              *target_key;
      19                 :            :         struct key              *dest_keyring;
      20                 :            :         const struct cred       *cred;
      21                 :            :         void                    *callout_info;
      22                 :            :         size_t                  callout_len;
      23                 :            :         pid_t                   pid;
      24                 :            :         char                    op[8];
      25                 :            : } __randomize_layout;
      26                 :            : 
      27                 :            : static inline struct request_key_auth *get_request_key_auth(const struct key *key)
      28                 :            : {
      29                 :          0 :         return key->payload.data[0];
      30                 :            : }
      31                 :            : 
      32                 :            : 
      33                 :            : #endif /* _KEYS_REQUEST_KEY_AUTH_TYPE_H */
    

Generated by: LCOV version 1.14