Commit 11be0b3c authored by Vsevolod Alekseev's avatar Vsevolod Alekseev Committed by Jiri Kosina

security.h: fix misc typos/grammar errors in comments

Fix various typos/grammar errors in include/linux/security.h comments (no code changes).
Signed-off-by: default avatarVsevolod Alekseev <vsevolod.alekseev@gmx.com>
Acked-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent f854b5bc
...@@ -186,7 +186,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) ...@@ -186,7 +186,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* Security module identifier. * Security module identifier.
* *
* @name: * @name:
* A string that acts as a unique identifeir for the LSM with max number * A string that acts as a unique identifier for the LSM with max number
* of characters = SECURITY_NAME_MAX. * of characters = SECURITY_NAME_MAX.
* *
* Security hooks for program execution operations. * Security hooks for program execution operations.
...@@ -275,7 +275,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) ...@@ -275,7 +275,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* @copy copied data which will be passed to the security module. * @copy copied data which will be passed to the security module.
* Returns 0 if the copy was successful. * Returns 0 if the copy was successful.
* @sb_remount: * @sb_remount:
* Extracts security system specifc mount options and verifys no changes * Extracts security system specific mount options and verifies no changes
* are being made to those options. * are being made to those options.
* @sb superblock being remounted * @sb superblock being remounted
* @data contains the filesystem-specific data. * @data contains the filesystem-specific data.
...@@ -380,15 +380,15 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) ...@@ -380,15 +380,15 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* Return 0 if permission is granted. * Return 0 if permission is granted.
* @inode_mkdir: * @inode_mkdir:
* Check permissions to create a new directory in the existing directory * Check permissions to create a new directory in the existing directory
* associated with inode strcture @dir. * associated with inode structure @dir.
* @dir containst the inode structure of parent of the directory to be created. * @dir contains the inode structure of parent of the directory to be created.
* @dentry contains the dentry structure of new directory. * @dentry contains the dentry structure of new directory.
* @mode contains the mode of new directory. * @mode contains the mode of new directory.
* Return 0 if permission is granted. * Return 0 if permission is granted.
* @path_mkdir: * @path_mkdir:
* Check permissions to create a new directory in the existing directory * Check permissions to create a new directory in the existing directory
* associated with path strcture @path. * associated with path structure @path.
* @dir containst the path structure of parent of the directory * @dir contains the path structure of parent of the directory
* to be created. * to be created.
* @dentry contains the dentry structure of new directory. * @dentry contains the dentry structure of new directory.
* @mode contains the mode of new directory. * @mode contains the mode of new directory.
...@@ -578,7 +578,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) ...@@ -578,7 +578,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* @file contains the file structure. * @file contains the file structure.
* @cmd contains the operation to perform. * @cmd contains the operation to perform.
* @arg contains the operational arguments. * @arg contains the operational arguments.
* Check permission for an ioctl operation on @file. Note that @arg can * Check permission for an ioctl operation on @file. Note that @arg
* sometimes represents a user space pointer; in other cases, it may be a * sometimes represents a user space pointer; in other cases, it may be a
* simple integer value. When @arg represents a user space pointer, it * simple integer value. When @arg represents a user space pointer, it
* should never be used by the security module. * should never be used by the security module.
...@@ -606,7 +606,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) ...@@ -606,7 +606,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* Return 0 if permission is granted. * Return 0 if permission is granted.
* @file_fcntl: * @file_fcntl:
* Check permission before allowing the file operation specified by @cmd * Check permission before allowing the file operation specified by @cmd
* from being performed on the file @file. Note that @arg can sometimes * from being performed on the file @file. Note that @arg sometimes
* represents a user space pointer; in other cases, it may be a simple * represents a user space pointer; in other cases, it may be a simple
* integer value. When @arg represents a user space pointer, it should * integer value. When @arg represents a user space pointer, it should
* never be used by the security module. * never be used by the security module.
...@@ -793,7 +793,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) ...@@ -793,7 +793,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* information can be saved using the eff_cap field of the * information can be saved using the eff_cap field of the
* netlink_skb_parms structure. Also may be used to provide fine * netlink_skb_parms structure. Also may be used to provide fine
* grained control over message transmission. * grained control over message transmission.
* @sk associated sock of task sending the message., * @sk associated sock of task sending the message.
* @skb contains the sk_buff structure for the netlink message. * @skb contains the sk_buff structure for the netlink message.
* Return 0 if the information was successfully saved and message * Return 0 if the information was successfully saved and message
* is allowed to be transmitted. * is allowed to be transmitted.
...@@ -1370,7 +1370,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) ...@@ -1370,7 +1370,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* @ctxlen contains the length of @ctx. * @ctxlen contains the length of @ctx.
* *
* @inode_getsecctx: * @inode_getsecctx:
* Returns a string containing all relavent security context information * Returns a string containing all relevant security context information
* *
* @inode we wish to get the security context of. * @inode we wish to get the security context of.
* @ctx is a pointer in which to place the allocated security context. * @ctx is a pointer in which to place the allocated security context.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment