Skip to contentSkip to conversation

security: update security_file_mmap() docs

PATCH In review Kees Cook 2 participants 2 messages Dec 19, 2011 Security (LSM)

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 security: update security_file_mmap() docs

This documents the fields added to security_file_mmap() that were introduced in ed0321895182ffb6ecf210e066d87911b270d587.

---
 include/linux/security.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/security.h +2 -0
index 256befc..57f4bfe 100644
@@ -590,6 +590,8 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
  *	@reqprot contains the protection requested by the application.
  *	@prot contains the protection that will be applied by the kernel.
  *	@flags contains the operational flags.
+ *	@addr contains virtual address that will be used for the operation.
+ *	@addr_only contains a boolean: 0 if file-backed VMA, otherwise 1.
  *	Return 0 if permission is granted.
  * @file_mprotect:
  *	Check permissions before changing memory access permissions.
Signature · 1 line
1.7.0.4
maintainer
#1 lore raw
Quoted 5 lines · Kees Cook

This documents the fields added to security_file_mmap() that were introduced in ed0321895182ffb6ecf210e066d87911b270d587.

---

Applied to
git://selinuxproject.org/~jmorris/linux-security next

Signature · 2 lines
James Morris
<[email protected]>