login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Andreas Gruenbacher
Subject:
Re: [AppArmor 32/45] Enable LSM hooks to distinguish operations on file descriptors from operations on pathnames
Date: Friday, October 26, 2007 - 2: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 operation ...
, jjohansen
, (Thu Oct 25, 11:40 pm)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish opera ...
, Miklos Szeredi
, (Fri Oct 26, 4:30 am)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish opera ...
, Miklos Szeredi
, (Fri Oct 26, 4:45 am)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish opera ...
, John Johansen
, (Fri Oct 26, 11:49 am)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish opera ...
, Andreas Gruenbacher
, (Fri Oct 26, 1:24 pm)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish opera ...
, Miklos Szeredi
, (Fri Oct 26, 1:58 pm)
Re: [AppArmor 32/45] Enable LSM hooks to distinguish opera ...
, Andreas Gruenbacher
, (Fri Oct 26, 2:56 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Benjamin Herrenschmidt
Re: [PATCH 1/4] hvc_console: do not set low_latency
Russell King
Re: ARM defconfig files
Carsten Otte
Re: [patch] ext2: xip check fix
Jordan Crouse
Re: 2.6.25-mm1
James Morris
Re: [AppArmor 01/41] Pass struct vfsmount to the inode_create LSM hook
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
Nicolas Pitre
Re: About git and the use of SHA-1
linux-netdev
:
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Andi Kleen
Re: RFC: Nagle latency tuning
Gary Thomas
Re: Marvell 88E609x switch?
David Miller
Re: [RFC 0/5] generic rx recycling
Chuck Lever
Re: [RFC] ipv6: Change %pI6 format to output compacted addresses?
dragonflybsd-user
:
Andreas Hauser
Re: Transset.
Tomas
usb printer Brother HL-2030 and DragonFly
Matthew Dillon
Re: DragonFlyBSD not in compliance with RFC 1122
Nikolai Lifanov
pkgsrc issues
Jonas
Re: New to DragonFly...
dragonflybsd-submit
:
Ilya Dryomov
git: HAMMER - Add live_dedup_cache_size sysctl
Matthew Dillon
git: MBUF - Account for failed allocations so netstat -m reports properly.
Simon Schubert
git: make.conf(5): mention STATIC_LOCALES
Matthias Schmidt
cvs commit: src/sys/net bpf.c bpf.h bpfdesc.h
Simon Schubert
git: Revert "Increase the default TCP maximum segment size from 512 to 1460."
Colocation donated by:
Syndicate