diff options
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index d70adc394f62..b8246a8df7d2 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1285,9 +1285,13 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) | |||
1285 | * Return 0 if permission is granted. | 1285 | * Return 0 if permission is granted. |
1286 | * | 1286 | * |
1287 | * @secid_to_secctx: | 1287 | * @secid_to_secctx: |
1288 | * Convert secid to security context. | 1288 | * Convert secid to security context. If secdata is NULL the length of |
1289 | * the result will be returned in seclen, but no secdata will be returned. | ||
1290 | * This does mean that the length could change between calls to check the | ||
1291 | * length and the next call which actually allocates and returns the secdata. | ||
1289 | * @secid contains the security ID. | 1292 | * @secid contains the security ID. |
1290 | * @secdata contains the pointer that stores the converted security context. | 1293 | * @secdata contains the pointer that stores the converted security context. |
1294 | * @seclen pointer which contains the length of the data | ||
1291 | * @secctx_to_secid: | 1295 | * @secctx_to_secid: |
1292 | * Convert security context to secid. | 1296 | * Convert security context to secid. |
1293 | * @secid contains the pointer to the generated security ID. | 1297 | * @secid contains the pointer to the generated security ID. |