login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
26
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operations on file descriptors from operations on pathnames
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Andreas Gruenbacher <agruen@...>
To: Miklos Szeredi <mszeredi@...>
Cc: <jjohansen@...>, <akpm@...>, <linux-kernel@...>, <linux-security-module@...>
Subject:
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operations on file descriptors from operations on pathnames
Date: Friday, October 26, 2007 - 5:56 pm
On Friday 26 October 2007 22:58:11 Miklos Szeredi wrote:
quoted text
> For special files, f_op->fsetattr will be NULL, since > init_special_inode() will set up i_fop that way. > > So the filesystem's fsetattr() will only be called for regular files > and/or directories, depending on how it sets up i_fop. > > With the ia_file thing, the filesystem would receive the struct file > pointer in all cases. So the posted patch would break AFS and FUSE, > because they unconditionally use ia_file if available and don't check > the file type.
Ah okay, that's what you mean. That's much cleaner than ia_file indeed.
quoted text
> They could check the file type, but still the interface would be ugly.
Agreed, that would be ugly.
quoted text
> Ah, so if we kept ATTR_FILE and got rid of iattr_file, would that be OK > for AppArmor?
No problem, yes. Thanks, Andreas -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[AppArmor 32/45] Enable LSM hooks to distinguish operations ...
,
, (Fri Oct 26, 2:40 am)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operati...
, Miklos Szeredi
, (Fri Oct 26, 7:30 am)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operati...
, Andreas Gruenbacher
, (Fri Oct 26, 4:24 pm)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operati...
, Miklos Szeredi
, (Fri Oct 26, 4:58 pm)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operati...
, Andreas Gruenbacher
, (Fri Oct 26, 5:56 pm)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operati...
, John Johansen
, (Fri Oct 26, 2:49 pm)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operati...
, Miklos Szeredi
, (Fri Oct 26, 7:45 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
David Miller
Re: Announce: Linux-next (Or Andrew's dream :-))
Andrea Arcangeli
[PATCH 04 of 12] Moves all mmu notifier methods outside the PT lock (first and not...
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
git
:
linux-netdev
:
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Arjan van de Ven
Re: [GIT]: Networking
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
845 guests
online.
Online users
plmqaz30
Syndicate