packages: kernel/kernel-aufs2-no-const-grsec.patch (NEW) - revert pointles ...
baggins
baggins at pld-linux.org
Wed Sep 29 10:57:01 CEST 2010
Author: baggins Date: Wed Sep 29 08:57:01 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- revert pointles 'const' clauses added by grsecurity, aufs2 needs to modify those fields
---- Files affected:
packages/kernel:
kernel-aufs2-no-const-grsec.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/kernel/kernel-aufs2-no-const-grsec.patch
diff -u /dev/null packages/kernel/kernel-aufs2-no-const-grsec.patch:1.1
--- /dev/null Wed Sep 29 10:57:01 2010
+++ packages/kernel/kernel-aufs2-no-const-grsec.patch Wed Sep 29 10:56:56 2010
@@ -0,0 +1,92 @@
+diff -urNp linux-2.6.35.5/include/linux/fs.h linux-2.6.35.5/include/linux/fs.h
+--- linux-2.6.35.5/include/linux/fs.h 2010-09-20 17:33:09.000000000 -0400
++++ linux-2.6.35.5/include/linux/fs.h 2010-09-20 17:33:35.000000000 -0400
+@@ -572,41 +577,41 @@ typedef int (*read_actor_t)(read_descrip
+ unsigned long, unsigned long);
+
+ struct address_space_operations {
+- int (* const writepage)(struct page *page, struct writeback_control *wbc);
+- int (* const readpage)(struct file *, struct page *);
+- void (* const sync_page)(struct page *);
++ int (*writepage)(struct page *page, struct writeback_control *wbc);
++ int (*readpage)(struct file *, struct page *);
++ void (*sync_page)(struct page *);
+
+ /* Write back some dirty pages from this mapping. */
+- int (* const writepages)(struct address_space *, struct writeback_control *);
++ int (*writepages)(struct address_space *, struct writeback_control *);
+
+ /* Set a page dirty. Return true if this dirtied it */
+- int (* const set_page_dirty)(struct page *page);
++ int (*set_page_dirty)(struct page *page);
+
+- int (* const readpages)(struct file *filp, struct address_space *mapping,
++ int (*readpages)(struct file *filp, struct address_space *mapping,
+ struct list_head *pages, unsigned nr_pages);
+
+- int (* const write_begin)(struct file *, struct address_space *mapping,
++ int (*write_begin)(struct file *, struct address_space *mapping,
+ loff_t pos, unsigned len, unsigned flags,
+ struct page **pagep, void **fsdata);
+- int (* const write_end)(struct file *, struct address_space *mapping,
++ int (*write_end)(struct file *, struct address_space *mapping,
+ loff_t pos, unsigned len, unsigned copied,
+ struct page *page, void *fsdata);
+
+ /* Unfortunately this kludge is needed for FIBMAP. Don't use it */
+- sector_t (* const bmap)(struct address_space *, sector_t);
+- void (* const invalidatepage) (struct page *, unsigned long);
+- int (* const releasepage) (struct page *, gfp_t);
+- ssize_t (* const direct_IO)(int, struct kiocb *, const struct iovec *iov,
++ sector_t (*bmap)(struct address_space *, sector_t);
++ void (*invalidatepage) (struct page *, unsigned long);
++ int (*releasepage) (struct page *, gfp_t);
++ ssize_t (*direct_IO)(int, struct kiocb *, const struct iovec *iov,
+ loff_t offset, unsigned long nr_segs);
+- int (* const get_xip_mem)(struct address_space *, pgoff_t, int,
++ int (*get_xip_mem)(struct address_space *, pgoff_t, int,
+ void **, unsigned long *);
+ /* migrate the contents of a page to the specified target */
+- int (* const migratepage) (struct address_space *,
++ int (*migratepage) (struct address_space *,
+ struct page *, struct page *);
+- int (* const launder_page) (struct page *);
+- int (* const is_partially_uptodate) (struct page *, read_descriptor_t *,
++ int (*launder_page) (struct page *);
++ int (*is_partially_uptodate) (struct page *, read_descriptor_t *,
+ unsigned long);
+- int (* const error_remove_page)(struct address_space *, struct page *);
++ int (*error_remove_page)(struct address_space *, struct page *);
+ };
+
+ /*
+@@ -1036,19 +1041,19 @@ static inline int file_check_writeable(s
+ typedef struct files_struct *fl_owner_t;
+
+ struct file_lock_operations {
+- void (* const fl_copy_lock)(struct file_lock *, struct file_lock *);
+- void (* const fl_release_private)(struct file_lock *);
++ void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
++ void (*fl_release_private)(struct file_lock *);
+ };
+
+ struct lock_manager_operations {
+- int (* const fl_compare_owner)(struct file_lock *, struct file_lock *);
+- void (* const fl_notify)(struct file_lock *); /* unblock callback */
+- int (* const fl_grant)(struct file_lock *, struct file_lock *, int);
+- void (* const fl_copy_lock)(struct file_lock *, struct file_lock *);
+- void (* const fl_release_private)(struct file_lock *);
+- void (* const fl_break)(struct file_lock *);
+- int (* const fl_mylease)(struct file_lock *, struct file_lock *);
+- int (* const fl_change)(struct file_lock **, int);
++ int (*fl_compare_owner)(struct file_lock *, struct file_lock *);
++ void (*fl_notify)(struct file_lock *); /* unblock callback */
++ int (*fl_grant)(struct file_lock *, struct file_lock *, int);
++ void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
++ void (*fl_release_private)(struct file_lock *);
++ void (*fl_break)(struct file_lock *);
++ int (*fl_mylease)(struct file_lock *, struct file_lock *);
++ int (*fl_change)(struct file_lock **, int);
+ };
+
+ struct lock_manager {
================================================================
More information about the pld-cvs-commit
mailing list