Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5191
b: refs/heads/master
c: 207a7ba
h: refs/heads/master
i:
  5189: 79ae127
  5187: 9c4a57d
  5183: 17ed832
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Jul 27, 2005
1 parent ea0ebe9 commit 932efea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c293621bbf678a3d85e3ed721c3921c8a670610d
refs/heads/master: 207a7ba8dc000e1b13acac97f3736810dd86e8e2
20 changes: 17 additions & 3 deletions trunk/kernel/capability.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ static DEFINE_SPINLOCK(task_capability_lock);
* uninteresting and/or not to be changed.
*/

/*
/**
* sys_capget - get the capabilities of a given process.
* @header: pointer to struct that contains capability version and
* target pid data
* @dataptr: pointer to struct that contains the effective, permitted,
* and inheritable capabilities that are returned
*
* Returns 0 on success and < 0 on error.
*/
asmlinkage long sys_capget(cap_user_header_t header, cap_user_data_t dataptr)
{
Expand Down Expand Up @@ -141,8 +147,14 @@ static inline int cap_set_all(kernel_cap_t *effective,
return ret;
}

/*
* sys_capset - set capabilities for a given process, all processes, or all
/**
* sys_capset - set capabilities for a process or a group of processes
* @header: pointer to struct that contains capability version and
* target pid data
* @data: pointer to struct that contains the effective, permitted,
* and inheritable capabilities
*
* Set capabilities for a given process, all processes, or all
* processes in a given process group.
*
* The restrictions on setting capabilities are specified as:
Expand All @@ -152,6 +164,8 @@ static inline int cap_set_all(kernel_cap_t *effective,
* I: any raised capabilities must be a subset of the (old current) permitted
* P: any raised capabilities must be a subset of the (old current) permitted
* E: must be set to a subset of (new target) permitted
*
* Returns 0 on success and < 0 on error.
*/
asmlinkage long sys_capset(cap_user_header_t header, const cap_user_data_t data)
{
Expand Down

0 comments on commit 932efea

Please sign in to comment.