public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* some questions aoout extended attribute in my developmen​t
@ 2012-08-23  9:16 jinxiu su
  2012-08-23 21:57 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: jinxiu su @ 2012-08-23  9:16 UTC (permalink / raw)
  To: linux-xfs


[-- Attachment #1.1: Type: text/plain, Size: 822 bytes --]

Hi....I am su, a new linuxer.

I am doing some development on linux security modules(LSM), and I use
extended attribute to store the security information.

But problems encountered..

when the kernel module that I developed is working a long time ,the
extended attribute of this file named /lib/ld-2.5.so lost.Exactly, it 's
replace by zero.

and in my kernel module ,there is a policy, when create a inode, the
extended attribute will be initialized to zero. But when I check /lib/
ld-2.5.so, the inode is not changed, exactly it's not a new inode. I am
becoming confused....

I think there must be some fatal bugs in my kernel module.But I am just
wondering  in which condition  can make a file's extended attribute field
to be replaced by zero? in which condition can make /lib/ld-2.5.so extended
attribute to be zero?

[-- Attachment #1.2: Type: text/html, Size: 966 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: some questions aoout extended attribute in my developmen​t
  2012-08-23  9:16 some questions aoout extended attribute in my developmen​t jinxiu su
@ 2012-08-23 21:57 ` Dave Chinner
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2012-08-23 21:57 UTC (permalink / raw)
  To: jinxiu su; +Cc: linux-xfs

On Thu, Aug 23, 2012 at 05:16:47PM +0800, jinxiu su wrote:
> Hi....I am su, a new linuxer.
> 
> I am doing some development on linux security modules(LSM), and I use
> extended attribute to store the security information.
> 
> But problems encountered..
> 
> when the kernel module that I developed is working a long time ,the
> extended attribute of this file named /lib/ld-2.5.so lost.Exactly, it 's
> replace by zero.
> 
> and in my kernel module ,there is a policy, when create a inode, the
> extended attribute will be initialized to zero. But when I check /lib/
> ld-2.5.so, the inode is not changed, exactly it's not a new inode. I am
> becoming confused....
> 
> I think there must be some fatal bugs in my kernel module.But I am just
> wondering  in which condition  can make a file's extended attribute field
> to be replaced by zero? in which condition can make /lib/ld-2.5.so extended
> attribute to be zero?

No idea. What filesystem did this happen on, and what kernel? it
sounds like the attribute got deleted, or a system upgrade replaced
the file with a new, possibly identical version...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2012-08-23 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23  9:16 some questions aoout extended attribute in my developmen​t jinxiu su
2012-08-23 21:57 ` Dave Chinner

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