X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Flsm_hooks.h;h=ab454445673a42108ee6f792cca5e10a8230064b;hb=ab9b110b70e4b4f57ac4af4563e98edf6b6eb092;hp=7161d8e7ee79246ffca220805826f883f26d7ddd;hpb=b6c70268723bc89743b8aaaa7d17f6889d72497a;p=mirror_ubuntu-bionic-kernel.git diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index 7161d8e7ee79..ab454445673a 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -1968,6 +1968,14 @@ struct security_hook_list { char *lsm; } __randomize_layout; +/* + * Security blob size or offset data. + */ +struct lsm_blob_sizes { + int lbs_cred; + int lbs_file; +}; + /* * Initializing a security_hook_list structure takes * up a lot of space in a source file. This macro takes @@ -1980,6 +1988,7 @@ struct security_hook_list { extern struct security_hook_heads security_hook_heads; extern char *lsm_names; +extern void security_add_blobs(struct lsm_blob_sizes *needed); extern void security_add_hooks(struct security_hook_list *hooks, int count, char *lsm); @@ -2026,4 +2035,10 @@ void __init loadpin_add_hooks(void); static inline void loadpin_add_hooks(void) { }; #endif +extern int lsm_cred_alloc(struct cred *cred, gfp_t gfp); + +#ifdef CONFIG_SECURITY +void lsm_early_cred(struct cred *cred); +#endif + #endif /* ! __LINUX_LSM_HOOKS_H */