lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090624202852.GA31192@phenom2.trippelsdorf.de>
Date:	Wed, 24 Jun 2009 22:28:52 +0200
From:	Markus Trippelsdorf <markus@...ppelsdorf.de>
To:	viro@...IV.linux.org.uk
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Build failure latest git. (acl related)

On Wed, Jun 24, 2009 at 10:09:41PM +0200, Markus Trippelsdorf wrote:
> The kernel does not build anymore (latest git):
> 
> In file included from include/linux/nfsacl.h:31,
>                  from include/linux/nfs_xdr.h:4,
>                  from include/linux/nfs_fs.h:58,
>                  from init/do_mounts.c:19:
> include/linux/posix_acl.h: In function `get_cached_acl':
> include/linux/posix_acl.h:91: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:94: error: `struct inode' has no member named `i_default_acl'
> include/linux/posix_acl.h: In function `set_cached_acl':
> include/linux/posix_acl.h:118: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:119: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:122: error: `struct inode' has no member named `i_default_acl'
> include/linux/posix_acl.h:123: error: `struct inode' has no member named `i_default_acl'
> include/linux/posix_acl.h: In function `forget_cached_acl':
> include/linux/posix_acl.h:137: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:138: error: `struct inode' has no member named `i_acl'
> include/linux/posix_acl.h:141: error: `struct inode' has no member named `i_default_acl'
> include/linux/posix_acl.h:142: error: `struct inode' has no member named `i_default_acl'
> make[1]: *** [init/do_mounts.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> 

This patch should fix it:


diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h
index 0cdba01..c513466 100644
--- a/include/linux/posix_acl.h
+++ b/include/linux/posix_acl.h
@@ -83,6 +83,7 @@ extern int posix_acl_chmod_masq(struct posix_acl *, mode_t);
 extern struct posix_acl *get_posix_acl(struct inode *, int);
 extern int set_posix_acl(struct inode *, int, struct posix_acl *);
 
+#ifdef CONFIG_FS_POSIX_ACL
 static inline struct posix_acl *get_cached_acl(struct inode *inode, int type)
 {
 	struct posix_acl **p, *acl;
@@ -146,5 +147,5 @@ static inline void forget_cached_acl(struct inode *inode, int type)
 	if (old != ACL_NOT_CACHED)
 		posix_acl_release(old);
 }
-
+#endif
 #endif  /* __LINUX_POSIX_ACL_H */
-- 
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ