public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the security-testing tree with Linus' tree
@ 2010-05-06  2:30 Stephen Rothwell
  2010-05-06 10:49 ` David Howells
  0 siblings, 1 reply; 12+ messages in thread
From: Stephen Rothwell @ 2010-05-06  2:30 UTC (permalink / raw)
  To: James Morris
  Cc: linux-next, linux-kernel, Toshiyuki Okajima, David Howells,
	Justin P. Mattock

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

Hi James,

Today's linux-next merge of the security-testing tree got a conflict in
security/keys/keyring.c between commit
cea7daa3589d6b550546a8c8963599f7c1a3ae5c ("KEYS: find_keyring_by_name()
can gain access to a freed keyring") from Linus' tree and commit
c5b60b5e67af8be4c58d3ffcc36894f69c4fbdc1 ("security: whitespace coding
style fixes") from the security-testing tree.

I just used the version from Linus' tree.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* linux-next: manual merge of the security-testing tree with Linus' tree
@ 2011-05-16  3:02 Stephen Rothwell
  2011-05-16 14:13 ` Serge Hallyn
  0 siblings, 1 reply; 12+ messages in thread
From: Stephen Rothwell @ 2011-05-16  3:02 UTC (permalink / raw)
  To: James Morris; +Cc: linux-next, linux-kernel, Serge E. Hallyn, Eric Paris

Hi James,

Today's linux-next merge of the security-testing tree got a conflict in
include/linux/capability.h between commit 47a150edc2ae ("Cache user_ns in
struct cred") from Linus' tree and commit ffa8e59df047 ("capabilities: do
not drop CAP_SETPCAP from the initial task") from the security-testing
tree.

Just context changes.  I fixed it up (see below) and can carry the fix as
necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc include/linux/capability.h
index d4675af,04fed72..0000000
--- a/include/linux/capability.h
+++ b/include/linux/capability.h
@@@ -546,8 -541,21 +541,10 @@@ extern bool has_capability_noaudit(stru
  extern bool capable(int cap);
  extern bool ns_capable(struct user_namespace *ns, int cap);
  extern bool task_ns_capable(struct task_struct *t, int cap);
 +extern bool nsown_capable(int cap);
  
+ extern const kernel_cap_t __cap_empty_set;
+ 
 -/**
 - * nsown_capable - Check superior capability to one's own user_ns
 - * @cap: The capability in question
 - *
 - * Return true if the current task has the given superior capability
 - * targeted at its own user namespace.
 - */
 -static inline bool nsown_capable(int cap)
 -{
 -	return ns_capable(current_user_ns(), cap);
 -}
 -
  /* audit system wants to get cap info from files as well */
  extern int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data *cpu_caps);
  

^ permalink raw reply	[flat|nested] 12+ messages in thread
* linux-next: manual merge of the security-testing tree with Linus' tree
@ 2009-05-22  5:29 Stephen Rothwell
  2009-05-22  5:35 ` Al Viro
  0 siblings, 1 reply; 12+ messages in thread
From: Stephen Rothwell @ 2009-05-22  5:29 UTC (permalink / raw)
  To: James Morris; +Cc: linux-next, linux-kernel, Mimi Zohar, Al Viro

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

Hi James,

Today's linux-next merge of the security-testing tree got a conflict in
fs/exec.c between commits a44ddbb6d8a8ffe4e34e417048dfdd8f3dd1de4f ("Make
open_exec() and sys_uselib() use may_open(), instead of duplicating its
parts") and 6e8341a11eb21826b7192d0bb88cb5b44900a9af ("Switch open_exec()
and sys_uselib() to do_open_filp()") from Linus' tree and commit
b9fc745db833bbf74b4988493b8cd902a84c9415 ("integrity: path_check update")
from the security-testing tree.

I used the version of these conflicts from Linus' tree as I assume that
the changes to may_open() from the latter patch are sufficient.  Please
check and let me know (or merge Linus' tree and do the resolution for
yourself :-)).
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* linux-next: manual merge of the security-testing tree with Linus' tree
@ 2009-02-06  7:23 Stephen Rothwell
  2009-02-06  8:12 ` James Morris
  0 siblings, 1 reply; 12+ messages in thread
From: Stephen Rothwell @ 2009-02-06  7:23 UTC (permalink / raw)
  To: James Morris; +Cc: linux-next, Christoph Hellwig, Al Viro, Mimi Zohar

Hi James,

Today's linux-next merge of the security-testing tree got a conflict in
fs/namei.c between commit cb23beb55100171646e69e248fb45f10db6e99a4 ("kill
vfs_permission") from Linus' tree and commit
6146f0d5e47ca4047ffded0fb79b6c25359b386c ("integrity: IMA hooks") from
the security-testing tree.

Just a context change.  I fixed it up (see below) and can carry the fix
for a while.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc fs/namei.c
index bbc15c2,734f2b5..0000000
--- a/fs/namei.c
+++ b/fs/namei.c
@@@ -848,8 -860,9 +849,10 @@@ static int __link_path_walk(const char 
  		nd->flags |= LOOKUP_CONTINUE;
  		err = exec_permission_lite(inode);
  		if (err == -EAGAIN)
 -			err = vfs_permission(nd, MAY_EXEC);
 +			err = inode_permission(nd->path.dentry->d_inode,
 +					       MAY_EXEC);
+ 		if (!err)
+ 			err = ima_path_check(&nd->path, MAY_EXEC);
   		if (err)
  			break;
  
@@@ -1506,9 -1525,14 +1509,14 @@@ int may_open(struct path *path, int acc
  		flag &= ~O_TRUNC;
  	}
  
 -	error = vfs_permission(nd, acc_mode);
 +	error = inode_permission(inode, acc_mode);
  	if (error)
  		return error;
+ 
+ 	error = ima_path_check(&nd->path,
+ 			       acc_mode & (MAY_READ | MAY_WRITE | MAY_EXEC));
+ 	if (error)
+ 		return error;
  	/*
  	 * An append-only file must be opened in append mode for writing.
  	 */

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-05-16 14:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06  2:30 linux-next: manual merge of the security-testing tree with Linus' tree Stephen Rothwell
2010-05-06 10:49 ` David Howells
2010-05-06 23:10   ` James Morris
2010-05-06 23:24     ` Justin P. Mattock
  -- strict thread matches above, loose matches on Subject: below --
2011-05-16  3:02 Stephen Rothwell
2011-05-16 14:13 ` Serge Hallyn
2011-05-16 14:52   ` Stephen Rothwell
2009-05-22  5:29 Stephen Rothwell
2009-05-22  5:35 ` Al Viro
2009-05-22  9:04   ` James Morris
2009-02-06  7:23 Stephen Rothwell
2009-02-06  8:12 ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox