From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q7NLuZvm079141 for ; Thu, 23 Aug 2012 16:56:35 -0500 Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by cuda.sgi.com with ESMTP id 4UzCWTPb4vi1N8kw for ; Thu, 23 Aug 2012 14:57:18 -0700 (PDT) Date: Fri, 24 Aug 2012 07:57:16 +1000 From: Dave Chinner Subject: Re: some questions aoout =?utf-8?Q?extende?= =?utf-8?Q?d_attribute_in_my_developmen=E2=80=8Bt?= Message-ID: <20120823215716.GV19235@dastard> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: jinxiu su Cc: linux-xfs@oss.sgi.com 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