* Question about inode and dentry
@ 2013-11-01 7:24 bill4carson
2013-11-01 12:24 ` Tetsuo Handa
2013-11-01 15:07 ` Richard Weinberger
0 siblings, 2 replies; 4+ messages in thread
From: bill4carson @ 2013-11-01 7:24 UTC (permalink / raw)
To: linux-fsdevel
Hi, all
Really new to fs area ;) I'm trying to port Umbrella project based on linux-2.6.11,
which implementing Process-Based Access Control (PBAC) to linux-2.6.34.
The key of Umbrella project is to restrict process access from some directory/files,
these restriction can be fetched from /proc/umbrella. First the directory/file path is
parsed from struct dentry, then every inode operation finally has to be checked against
the restrictions with current accessed path involved. This basically how it works.
In linux-2.6.11, struct dentry is used by nd->dentry.
int permission(struct inode *inode, int mask, struct nameidata *nd)
-> security_inode_permission
-> security_ops->inode_permission
But in linux-2.6.34, struct nameidata is not used any more, how can I get proper struct
dentry from inode?
int inode_permission(struct inode *inode, int mask)
-> security_inode_permission
-> security_ops->inode_permission
Thanks in advance.
--
八百里秦川尘土飞扬,三千万老陕齐吼秦腔。
--bill
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about inode and dentry
2013-11-01 7:24 Question about inode and dentry bill4carson
@ 2013-11-01 12:24 ` Tetsuo Handa
2013-11-01 15:07 ` Richard Weinberger
1 sibling, 0 replies; 4+ messages in thread
From: Tetsuo Handa @ 2013-11-01 12:24 UTC (permalink / raw)
To: bill4carson; +Cc: linux-fsdevel
bill4carson wrote:
> But in linux-2.6.34, struct nameidata is not used any more, how can I get proper struct
> dentry from inode?
You cannot. Please use security_path_*() hooks instead.
Also, linux-security-module@vger.kernel.org would be better for
discussion about access control modules.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about inode and dentry
2013-11-01 7:24 Question about inode and dentry bill4carson
2013-11-01 12:24 ` Tetsuo Handa
@ 2013-11-01 15:07 ` Richard Weinberger
2013-11-08 8:25 ` bill4carson
1 sibling, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2013-11-01 15:07 UTC (permalink / raw)
To: bill4carson; +Cc: linux-fsdevel
On Fri, Nov 1, 2013 at 8:24 AM, bill4carson <bill4carson@gmail.com> wrote:
> Hi, all
>
> Really new to fs area ;) I'm trying to port Umbrella project based on
> linux-2.6.11,
> which implementing Process-Based Access Control (PBAC) to linux-2.6.34.
Instead of porting it from stone age to mid age, bring it mainline.
This is the only way to have such issues automatically solved.
--
Thanks,
//richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Question about inode and dentry
2013-11-01 15:07 ` Richard Weinberger
@ 2013-11-08 8:25 ` bill4carson
0 siblings, 0 replies; 4+ messages in thread
From: bill4carson @ 2013-11-08 8:25 UTC (permalink / raw)
To: Richard Weinberger; +Cc: linux-fsdevel, Tetsuo Handa
On 2013年11月01日 23:07, Richard Weinberger wrote:
> On Fri, Nov 1, 2013 at 8:24 AM, bill4carson<bill4carson@gmail.com> wrote:
>> Hi, all
>>
>> Really new to fs area ;) I'm trying to port Umbrella project based on
>> linux-2.6.11,
>> which implementing Process-Based Access Control (PBAC) to linux-2.6.34.
>
> Instead of porting it from stone age to mid age, bring it mainline.
> This is the only way to have such issues automatically solved.
>
Hi, Richard and Tetsuo-san
Thanks for your information :)
--
八百里秦川尘土飞扬,三千万老陕齐吼秦腔。
--bill
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-08 8:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01 7:24 Question about inode and dentry bill4carson
2013-11-01 12:24 ` Tetsuo Handa
2013-11-01 15:07 ` Richard Weinberger
2013-11-08 8:25 ` bill4carson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).