@@ -1067,13 +1067,6 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
10671067 * Return the length of the string (including terminating NUL) or -ve if
10681068 * an error.
10691069 * May also return 0 (and a NULL buffer pointer) if there is no label.
1070- * @key_session_to_parent:
1071- * Forcibly assign the session keyring from a process to its parent
1072- * process.
1073- * @cred: Pointer to process's credentials
1074- * @parent_cred: Pointer to parent process's credentials
1075- * @keyring: Proposed new session keyring
1076- * Return 0 if permission is granted, -ve error otherwise.
10771070 *
10781071 * Security hooks affecting all System V IPC operations.
10791072 *
@@ -1642,9 +1635,6 @@ struct security_operations {
16421635 const struct cred * cred ,
16431636 key_perm_t perm );
16441637 int (* key_getsecurity )(struct key * key , char * * _buffer );
1645- int (* key_session_to_parent )(const struct cred * cred ,
1646- const struct cred * parent_cred ,
1647- struct key * key );
16481638#endif /* CONFIG_KEYS */
16491639
16501640#ifdef CONFIG_AUDIT
@@ -2918,9 +2908,6 @@ void security_key_free(struct key *key);
29182908int security_key_permission (key_ref_t key_ref ,
29192909 const struct cred * cred , key_perm_t perm );
29202910int security_key_getsecurity (struct key * key , char * * _buffer );
2921- int security_key_session_to_parent (const struct cred * cred ,
2922- const struct cred * parent_cred ,
2923- struct key * key );
29242911
29252912#else
29262913
@@ -2948,13 +2935,6 @@ static inline int security_key_getsecurity(struct key *key, char **_buffer)
29482935 return 0 ;
29492936}
29502937
2951- static inline int security_key_session_to_parent (const struct cred * cred ,
2952- const struct cred * parent_cred ,
2953- struct key * key )
2954- {
2955- return 0 ;
2956- }
2957-
29582938#endif
29592939#endif /* CONFIG_KEYS */
29602940
0 commit comments