Hello community, here is the log from the commit of package dazuko checked in at Wed Apr 4 20:43:29 CEST 2007. -------- --- arch/i386/dazuko/dazuko.changes 2007-03-23 12:59:12.000000000 +0100 +++ /mounts/work_src_done/STABLE/dazuko/dazuko.changes 2007-04-04 16:57:58.295509000 +0200 @@ -1,0 +2,7 @@ +Wed Apr 4 16:54:33 CEST 2007 - mt@suse.de + +- Adopted for new LSM prototypes in kernel 2.6.21_rc5_git8_2. + New patch file: dazuko-2.3.3.dif +- Added module-init-tools to build requires. + +------------------------------------------------------------------- New: ---- dazuko-2.3.3.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dazuko.spec ++++++ --- /var/tmp/diff_new_pack.x19258/_old 2007-04-04 20:41:50.000000000 +0200 +++ /var/tmp/diff_new_pack.x19258/_new 2007-04-04 20:41:50.000000000 +0200 @@ -15,7 +15,7 @@ License: BSD License and BSD-like, GNU General Public License (GPL) Group: System/Kernel Version: 2.3.3.4 -Release: 1 +Release: 4 %define dazuko_version 2.3.3 Summary: On-access virus scanning kernel interface URL: http://www.dazuko.org/ @@ -23,11 +23,11 @@ Source1: http://www.dazuko.org/files/dazuko-%{dazuko_version}.tar.gz.asc Source2: dazuko.sysconfig Source3: dazuko.init-script -#Patch0: dazuko-%{dazuko_version}.dif +Patch0: dazuko-%{dazuko_version}.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 x86_64 #Obsoletes: km_antivir km_dazuko -BuildRequires: kernel-source kernel-syms +BuildRequires: kernel-source kernel-syms module-init-tools %suse_kernel_module_package kdump um %description @@ -59,7 +59,7 @@ %prep %setup -n dazuko-%{dazuko_version} -#%patch0 -p0 +%patch0 -p0 set -- * mkdir source mv "$@" source/ @@ -132,6 +132,10 @@ /var/adm/fillup-templates/sysconfig.dazuko %changelog +* Wed Apr 04 2007 - mt@suse.de +- Adopted for new LSM prototypes in kernel 2.6.21_rc5_git8_2. + New patch file: dazuko-2.3.3.dif +- Added module-init-tools to build requires. * Fri Mar 23 2007 - mt@suse.de - Updated to dazuko-2.3.3(.4) final, including 2.6.21 LSM patch. Obsolete patch file: dazuko-2.3.3-pre3_linux-2.6.21.dif ++++++ dazuko-2.3.3.dif ++++++ --- dazuko_linux26.c +++ dazuko_linux26.c 2007/04/04 14:37:00 @@ -58,8 +58,10 @@ #ifndef WITH_LOCAL_DPATH +#ifndef USE_CHROOT extern char * __d_path(struct dentry *, struct vfsmount *, struct dentry *, struct vfsmount *, char *, int); #endif +#endif ssize_t linux_dazuko_device_read(struct file *, char __user *, size_t, loff_t *); ssize_t linux_dazuko_device_write(struct file *, const char __user *, size_t, loff_t *); --- dazuko_linux26_lsm.c +++ dazuko_linux26_lsm.c 2007/04/04 14:27:06 @@ -376,12 +376,21 @@ } #endif +#if defined(LSM_security_inode_create_2_6_21) +int dazuko_security_inode_create (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt, int mode) +{ + RETURN_DAZUKO_LSM_CALL(inode_create, (dir, dentry, mnt, mode)); + + return 0; +} +#else int dazuko_security_inode_create (struct inode *dir, struct dentry *dentry, int mode) { RETURN_DAZUKO_LSM_CALL(inode_create, (dir, dentry, mode)); return 0; } +#endif #if defined(LSM_security_inode_post_create_2_6_14) void dazuko_security_inode_post_create (struct inode *dir, struct dentry *dentry, int mode) @@ -390,12 +399,21 @@ } #endif +#if defined(LSM_security_inode_link_2_6_21) +int dazuko_security_inode_link (struct dentry *old_dentry, struct vfsmount *old_mnt, struct inode *dir, struct dentry *new_dentry, struct vfsmount *new_mnt) +{ + RETURN_DAZUKO_LSM_CALL(inode_link, (old_dentry, old_mnt, dir, new_dentry, new_mnt)); + + return 0; +} +#else int dazuko_security_inode_link (struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) { RETURN_DAZUKO_LSM_CALL(inode_link, (old_dentry, dir, new_dentry)); return 0; } +#endif #if defined(LSM_security_inode_post_link_2_6_14) void dazuko_security_inode_post_link (struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) @@ -404,19 +422,37 @@ } #endif +#if defined(LSM_security_inode_unlink_2_6_21) +int dazuko_security_inode_unlink (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt) +{ + RETURN_DAZUKO_LSM_CALL(inode_unlink, (dir, dentry, mnt)); + + return 0; +} +#else int dazuko_security_inode_unlink (struct inode *dir, struct dentry *dentry) { RETURN_DAZUKO_LSM_CALL(inode_unlink, (dir, dentry)); return 0; } +#endif + +#if defined(LSM_security_inode_symlink_2_6_21) +int dazuko_security_inode_symlink (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt, const char *old_name) +{ + RETURN_DAZUKO_LSM_CALL(inode_symlink, (dir, dentry, mnt, old_name)); + return 0; +} +#else int dazuko_security_inode_symlink (struct inode *dir, struct dentry *dentry, const char *old_name) { RETURN_DAZUKO_LSM_CALL(inode_symlink, (dir, dentry, old_name)); return 0; } +#endif #if defined(LSM_security_inode_post_symlink_2_6_14) void dazuko_security_inode_post_symlink (struct inode *dir, struct dentry *dentry, const char *old_name) @@ -425,12 +461,21 @@ } #endif +#if defined(LSM_security_inode_mkdir_2_6_21) +int dazuko_security_inode_mkdir (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt, int mode) +{ + RETURN_DAZUKO_LSM_CALL(inode_mkdir, (dir, dentry, mnt, mode)); + + return 0; +} +#else int dazuko_security_inode_mkdir (struct inode *dir, struct dentry *dentry, int mode) { RETURN_DAZUKO_LSM_CALL(inode_mkdir, (dir, dentry, mode)); return 0; } +#endif #if defined(LSM_security_inode_post_mkdir_2_6_14) void dazuko_security_inode_post_mkdir (struct inode *dir, struct dentry *dentry, int mode) @@ -439,19 +484,37 @@ } #endif +#if defined(LSM_security_inode_rmdir_2_6_21) +int dazuko_security_inode_rmdir (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt) +{ + RETURN_DAZUKO_LSM_CALL(inode_rmdir, (dir, dentry, mnt)); + + return 0; +} +#else int dazuko_security_inode_rmdir (struct inode *dir, struct dentry *dentry) { RETURN_DAZUKO_LSM_CALL(inode_rmdir, (dir, dentry)); return 0; } +#endif +#if defined(LSM_security_inode_mknod_2_6_21) +int dazuko_security_inode_mknod (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt, int mode, dev_t dev) +{ + RETURN_DAZUKO_LSM_CALL(inode_mknod, (dir, dentry, mnt, mode, dev)); + + return 0; +} +#else int dazuko_security_inode_mknod (struct inode *dir, struct dentry *dentry, int mode, dev_t dev) { RETURN_DAZUKO_LSM_CALL(inode_mknod, (dir, dentry, mode, dev)); return 0; } +#endif #if defined(LSM_security_inode_post_mknod_2_6_14) void dazuko_security_inode_post_mknod (struct inode *dir, struct dentry *dentry, int mode, dev_t dev) @@ -460,12 +523,21 @@ } #endif +#if defined(LSM_security_inode_rename_2_6_21) +int dazuko_security_inode_rename (struct inode *old_dir, struct dentry *old_dentry, struct vfsmount *old_mnt, struct inode *new_dir, struct dentry *new_dentry, struct vfsmount *new_mnt) +{ + RETURN_DAZUKO_LSM_CALL(inode_rename, (old_dir, old_dentry, old_mnt, new_dir, new_dentry, new_mnt)); + + return 0; +} +#else int dazuko_security_inode_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) { RETURN_DAZUKO_LSM_CALL(inode_rename, (old_dir, old_dentry, new_dir, new_dentry)); return 0; } +#endif #if defined(LSM_security_inode_post_rename_2_6_14) void dazuko_security_inode_post_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) @@ -474,12 +546,21 @@ } #endif +#if defined(LSM_security_inode_readlink_2_6_21) +int dazuko_security_inode_readlink (struct dentry *dentry, struct vfsmount *mnt) +{ + RETURN_DAZUKO_LSM_CALL(inode_readlink, (dentry, mnt)); + + return 0; +} +#else int dazuko_security_inode_readlink (struct dentry *dentry) { RETURN_DAZUKO_LSM_CALL(inode_readlink, (dentry)); return 0; } +#endif int dazuko_security_inode_follow_link (struct dentry *dentry, struct nameidata *nd) { @@ -519,12 +600,21 @@ return 0; } +#if defined(LSM_security_inode_setattr_2_6_21) +int dazuko_security_inode_setattr (struct dentry *dentry, struct vfsmount *mnt, struct iattr *attr) +{ + RETURN_DAZUKO_LSM_CALL(inode_setattr, (dentry, mnt, attr)); + + return 0; +} +#else int dazuko_security_inode_setattr (struct dentry *dentry, struct iattr *attr) { RETURN_DAZUKO_LSM_CALL(inode_setattr, (dentry, attr)); return 0; } +#endif int dazuko_security_inode_getattr (struct vfsmount *mnt, struct dentry *dentry) { @@ -539,6 +629,14 @@ } #ifndef NO_CAPABILITIES +#if defined(LSM_security_inode_setxattr_2_6_21) +int dazuko_security_inode_setxattr (struct dentry *dentry, struct vfsmount *mnt, char *name, void *value, size_t size, int flags, struct file *file) +{ + RETURN_DAZUKO_LSM_CALL(inode_setxattr, (dentry, mnt, name, value, size, flags, file)); + + return 0; +} +#else int dazuko_security_inode_setxattr (struct dentry *dentry, char *name, void *value, size_t size, int flags) { RETURN_DAZUKO_LSM_CALL(inode_setxattr, (dentry, name, value, size, flags)); @@ -550,27 +648,61 @@ #endif } #endif +#endif +#if defined(LSM_security_inode_post_setxattr_2_6_21) +void dazuko_security_inode_post_setxattr (struct dentry *dentry, struct vfsmount *mnt, char *name, void *value, size_t size, int flags) +{ + VOID_DAZUKO_LSM_CALL(inode_post_setxattr, (dentry, mnt, name, value, size, flags)); +} +#else void dazuko_security_inode_post_setxattr (struct dentry *dentry, char *name, void *value, size_t size, int flags) { VOID_DAZUKO_LSM_CALL(inode_post_setxattr, (dentry, name, value, size, flags)); } +#endif + +#if defined(LSM_security_inode_getxattr_2_6_21) +int dazuko_security_inode_getxattr (struct dentry *dentry, struct vfsmount *mnt, char *name, struct file *file) +{ + RETURN_DAZUKO_LSM_CALL(inode_getxattr, (dentry, mnt, name, file)); + return 0; +} +#else int dazuko_security_inode_getxattr (struct dentry *dentry, char *name) { RETURN_DAZUKO_LSM_CALL(inode_getxattr, (dentry, name)); return 0; } +#endif + +#if defined(LSM_security_inode_listxattr_2_6_21) +int dazuko_security_inode_listxattr (struct dentry *dentry, struct vfsmount *mnt, struct file *file) +{ + RETURN_DAZUKO_LSM_CALL(inode_listxattr, (dentry, mnt, file)); + return 0; +} +#else int dazuko_security_inode_listxattr (struct dentry *dentry) { RETURN_DAZUKO_LSM_CALL(inode_listxattr, (dentry)); return 0; } +#endif #ifndef NO_CAPABILITIES +#if defined(LSM_security_inode_removexattr_2_6_21) +int dazuko_security_inode_removexattr (struct dentry *dentry, struct vfsmount *mnt, char *name, struct file *file) +{ + RETURN_DAZUKO_LSM_CALL(inode_removexattr, (dentry, mnt, name, file)); + + return 0; +} +#else int dazuko_security_inode_removexattr (struct dentry *dentry, char *name) { RETURN_DAZUKO_LSM_CALL(inode_removexattr, (dentry, name)); @@ -582,6 +714,7 @@ #endif } #endif +#endif #if defined(LSM_security_inode_xattr_getsuffix_2_6_17) const char * dazuko_security_inode_xattr_getsuffix (void) --- dazuko_linux26_lsm.h +++ dazuko_linux26_lsm.h 2007/04/04 14:26:17 @@ -66,9 +66,17 @@ int dazuko_security_bprm_secureexec (struct linux_binprm *bprm); +#if defined(LSM_security_inode_setxattr_2_6_21) +int dazuko_security_inode_setxattr (struct dentry *dentry, struct vfsmount *mnt, char *name, void *value, size_t size, int flags, struct file *file); +#else int dazuko_security_inode_setxattr (struct dentry *dentry, char *name, void *value, size_t size, int flags); +#endif +#if defined(LSM_security_inode_removexattr_2_6_21) +int dazuko_security_inode_removexattr (struct dentry *dentry, struct vfsmount *mnt, char *name, struct file *file); +#else int dazuko_security_inode_removexattr (struct dentry *dentry, char *name); +#endif #if defined(LSM_security_inode_xattr_getsuffix_2_6_17) const char * dazuko_security_inode_xattr_getsuffix (void); @@ -167,63 +175,115 @@ int dazuko_security_inode_init_security (struct inode *inode, struct inode *dir, char **name, void **value, size_t *len); #endif +#if defined(LSM_security_inode_create_2_6_21) +int dazuko_security_inode_create (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt, int mode); +#else int dazuko_security_inode_create (struct inode *dir, struct dentry *dentry, int mode); +#endif #if defined(LSM_security_inode_post_create_2_6_14) void dazuko_security_inode_post_create (struct inode *dir, struct dentry *dentry, int mode); #endif +#if defined(LSM_security_inode_link_2_6_21) +int dazuko_security_inode_link (struct dentry *old_dentry, struct vfsmount *old_mnt, struct inode *dir, struct dentry *new_dentry, struct vfsmount *new_mnt); +#else int dazuko_security_inode_link (struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry); +#endif #if defined(LSM_security_inode_post_link_2_6_14) void dazuko_security_inode_post_link (struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry); #endif +#if defined(LSM_security_inode_unlink_2_6_21) +int dazuko_security_inode_unlink (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt); +#else int dazuko_security_inode_unlink (struct inode *dir, struct dentry *dentry); +#endif +#if defined(LSM_security_inode_symlink_2_6_21) +int dazuko_security_inode_symlink (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt, const char *old_name); +#else int dazuko_security_inode_symlink (struct inode *dir, struct dentry *dentry, const char *old_name); +#endif #if defined(LSM_security_inode_post_symlink_2_6_14) void dazuko_security_inode_post_symlink (struct inode *dir, struct dentry *dentry, const char *old_name); #endif +#if defined(LSM_security_inode_mkdir_2_6_21) +int dazuko_security_inode_mkdir (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt, int mode); +#else int dazuko_security_inode_mkdir (struct inode *dir, struct dentry *dentry, int mode); +#endif #if defined(LSM_security_inode_post_mkdir_2_6_14) void dazuko_security_inode_post_mkdir (struct inode *dir, struct dentry *dentry, int mode); #endif +#if defined(LSM_security_inode_rmdir_2_6_21) +int dazuko_security_inode_rmdir (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt); +#else int dazuko_security_inode_rmdir (struct inode *dir, struct dentry *dentry); +#endif +#if defined(LSM_security_inode_mknod_2_6_21) +int dazuko_security_inode_mknod (struct inode *dir, struct dentry *dentry, struct vfsmount *mnt, int mode, dev_t dev); +#else int dazuko_security_inode_mknod (struct inode *dir, struct dentry *dentry, int mode, dev_t dev); +#endif #if defined(LSM_security_inode_post_mknod_2_6_14) void dazuko_security_inode_post_mknod (struct inode *dir, struct dentry *dentry, int mode, dev_t dev); #endif +#if defined(LSM_security_inode_rename_2_6_21) +int dazuko_security_inode_rename (struct inode *old_dir, struct dentry *old_dentry, struct vfsmount *old_mnt, struct inode *new_dir, struct dentry *new_dentry, struct vfsmount *new_mnt); +#else int dazuko_security_inode_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry); +#endif #if defined(LSM_security_inode_post_rename_2_6_14) void dazuko_security_inode_post_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry); #endif +#if defined(LSM_security_inode_readlink_2_6_21) +int dazuko_security_inode_readlink (struct dentry *dentry, struct vfsmount *mnt); +#else int dazuko_security_inode_readlink (struct dentry *dentry); +#endif int dazuko_security_inode_follow_link (struct dentry *dentry, struct nameidata *nd); int dazuko_security_inode_permission (struct inode *inode, int mask, struct nameidata *nd); +#if defined(LSM_security_inode_setattr_2_6_21) +int dazuko_security_inode_setattr (struct dentry *dentry, struct vfsmount *mnt, struct iattr *attr); +#else int dazuko_security_inode_setattr (struct dentry *dentry, struct iattr *attr); +#endif int dazuko_security_inode_getattr (struct vfsmount *mnt, struct dentry *dentry); void dazuko_security_inode_delete (struct inode *inode); +#if defined(LSM_security_inode_post_setxattr_2_6_21) +void dazuko_security_inode_post_setxattr (struct dentry *dentry, struct vfsmount *mnt, char *name, void *value, size_t size, int flags); +#else void dazuko_security_inode_post_setxattr (struct dentry *dentry, char *name, void *value, size_t size, int flags); +#endif +#if defined(LSM_security_inode_getxattr_2_6_21) +int dazuko_security_inode_getxattr (struct dentry *dentry, struct vfsmount *mnt, char *name, struct file *file); +#else int dazuko_security_inode_getxattr (struct dentry *dentry, char *name); +#endif +#if defined(LSM_security_inode_listxattr_2_6_21) +int dazuko_security_inode_listxattr (struct dentry *dentry, struct vfsmount *mnt, struct file *file); +#else int dazuko_security_inode_listxattr (struct dentry *dentry); +#endif #if defined(LSM_security_inode_getsecurity_2_6_10) int dazuko_security_inode_getsecurity(struct inode *inode, const char *name, void *buffer, size_t size); --- linux_lsm_conf +++ linux_lsm_conf 2007/04/04 14:25:25 @@ -627,6 +627,112 @@ echo "#define LSM_security_getprocattr_2_6_21" >> $FILE fi +cat $TMPFILE | grep -q \ +"security_inode_create${Z}(${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}int${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_create_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_link${Z}(${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_link_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_unlink${Z}(${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_unlink_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_symlink${Z}(${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}const${Z}char${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_symlink_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_mkdir${Z}(${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}int${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_mkdir_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_rmdir${Z}(${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_rmdir_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_mknod${Z}(${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}int${Z},${Z}dev_t${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_mknod_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_rename${Z}(${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}struct${Z}inode${Z}\*${Z},${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_rename_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_readlink${Z}(${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_readlink_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_setattr${Z}(${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}struct${Z}iattr${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_setattr_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_setxattr${Z}(${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}char${Z}\*${Z},${Z}void${Z}\*${Z},${Z}size_t${Z},${Z}int${Z},${Z}struct${Z}file${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_setxattr_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_post_setxattr${Z}(${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}char${Z}\*${Z},${Z}void${Z}\*${Z},${Z}size_t${Z},${Z}int${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_post_setxattr_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_getxattr${Z}(${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}char${Z}\*${Z},${Z}struct${Z}file${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_getxattr_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_listxattr${Z}(${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}struct${Z}file${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_listxattr_2_6_21" >> $FILE +fi + +cat $TMPFILE | grep -q \ +"security_inode_removexattr${Z}(${Z}struct${Z}dentry${Z}\*${Z},${Z}struct${Z}vfsmount${Z}\*${Z},${Z}char${Z}\*${Z},${Z}struct${Z}file${Z}\*${Z})" +if [ $? -eq 0 ] +then + echo "#define LSM_security_inode_removexattr_2_6_21" >> $FILE +fi + + rm -f $TMPFILE exit 0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org