3.10.4 && grsecurity/gracl error

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

3.10.4 && grsecurity/gracl error

Postby rolan » Wed Jul 31, 2013 5:21 am

Attempting to build kernel 3.10.4 (with most recent grsec for 3.10.3 ok)

Stock slackware current gcc version 4.8.1 (GCC)

...
CC grsecurity/grsum.o
CC grsecurity/gracl.o
grsecurity/gracl.c: In function ‘copy_user_glob’:
grsecurity/gracl.c:1126:3: error: implicit declaration of function ‘copy_acl_object_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_object_label(g_tmp, *guser))
^
grsecurity/gracl.c: In function ‘count_user_subjs’:
grsecurity/gracl.c:1196:3: error: implicit declaration of function ‘copy_acl_subject_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_subject_label(&s_tmp, userp))
^
grsecurity/gracl.c: In function ‘copy_user_allowedips’:
grsecurity/gracl.c:1219:3: error: implicit declaration of function ‘copy_role_allowed_ip_normal’ [- Werror=implicit-function-declaration]
if (copy_role_allowed_ip(rtmp, ruserip))

...

grsecurity/gracl.c:3290:27: error: lvalue required as left operand of assignment
get_gr_arg_wrapper_size = &get_gr_arg_wrapper_size_normal;

cc1: all warnings being treated as errors
make[1]: *** [grsecurity/gracl.o] Error 1
make: *** [grsecurity] Error 2
rolan
 
Posts: 16
Joined: Mon Aug 15, 2011 12:23 am

Re: 3.10.4 && grsecurity/gracl error

Postby rolan » Wed Jul 31, 2013 5:26 am

Addendum: using grsecurity-2.9.1-3.10.4-201307302312.patch
rolan
 
Posts: 16
Joined: Mon Aug 15, 2011 12:23 am

Re: 3.10.4 && grsecurity/gracl error

Postby rolan » Wed Jul 31, 2013 5:35 am

At a second thought (what I was thinking to *economize*?!), here
there is the complete listing:

...
CC grsecurity/grsum.o
CC grsecurity/gracl.o
grsecurity/gracl.c: In function ‘copy_user_glob’:
grsecurity/gracl.c:1126:3: error: implicit declaration of function ‘copy_acl_object_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_object_label(g_tmp, *guser))
^
grsecurity/gracl.c: In function ‘count_user_subjs’:
grsecurity/gracl.c:1196:3: error: implicit declaration of function ‘copy_acl_subject_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_subject_label(&s_tmp, userp))
^
grsecurity/gracl.c: In function ‘copy_user_allowedips’:
grsecurity/gracl.c:1219:3: error: implicit declaration of function ‘copy_role_allowed_ip_normal’ [-Werror=implicit-function-declaration]
if (copy_role_allowed_ip(rtmp, ruserip))
^
grsecurity/gracl.c: In function ‘copy_user_transitions’:
grsecurity/gracl.c:1254:3: error: implicit declaration of function ‘copy_role_transition_normal’ [-Werror=implicit-function-declaration]
if (copy_role_transition(rtmp, rusertp))
^
grsecurity/gracl.c: In function ‘do_copy_user_subj’:
grsecurity/gracl.c:1341:2: error: implicit declaration of function ‘copy_gr_hash_struct’ [-Werror=implicit-function-declaration]
if (copy_gr_hash_struct(&ghash, s_tmp->hash))
^
grsecurity/gracl.c:1422:3: error: implicit declaration of function ‘copy_pointer_from_array_normal’ [-Werror=implicit-function-declaration]
if (copy_pointer_from_array(&i_utmp2, i_num, s_tmp->ips))
^
grsecurity/gracl.c:1425:3: error: implicit declaration of function ‘copy_acl_ip_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_ip_label(*(i_tmp + i_num), i_utmp2))
^
grsecurity/gracl.c: In function ‘copy_user_acl’:
grsecurity/gracl.c:1500:3: error: implicit declaration of function ‘copy_sprole_pw_normal’ [-Werror=implicit-function-declaration]
if (copy_sprole_pw(sptmp, i, arg->sprole_pws))
^
grsecurity/gracl.c:1525:3: error: implicit declaration of function ‘copy_acl_role_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_role_label(r_tmp, r_utmp2))
^
grsecurity/gracl.c: At top level:
grsecurity/gracl.c:3150:12: error: static declaration of ‘copy_acl_object_label_normal’ follows non-static declaration
static int copy_acl_object_label_normal(struct acl_object_label *obj, const struct acl_object_label *userp)
^
grsecurity/gracl.c:133:31: note: previous implicit declaration of ‘copy_acl_object_label_normal’ was here
#define copy_acl_object_label copy_acl_object_label_normal
^
grsecurity/gracl.c:1126:7: note: in expansion of macro ‘copy_acl_object_label’
if (copy_acl_object_label(g_tmp, *guser))
^
grsecurity/gracl.c:3158:12: error: static declaration of ‘copy_acl_ip_label_normal’ follows non-static declaration
static int copy_acl_ip_label_normal(struct acl_ip_label *ip, const struct acl_ip_label *userp)
^
grsecurity/gracl.c:136:27: note: previous implicit declaration of ‘copy_acl_ip_label_normal’ was here
#define copy_acl_ip_label copy_acl_ip_label_normal
^
grsecurity/gracl.c:1425:7: note: in expansion of macro ‘copy_acl_ip_label’
if (copy_acl_ip_label(*(i_tmp + i_num), i_utmp2))
^
grsecurity/gracl.c:3166:12: error: static declaration of ‘copy_acl_subject_label_normal’ follows non-static declaration
static int copy_acl_subject_label_normal(struct acl_subject_label *subj, const struct acl_subject_label *userp)
^
grsecurity/gracl.c:134:32: note: previous implicit declaration of ‘copy_acl_subject_label_normal’ was here
#define copy_acl_subject_label copy_acl_subject_label_normal
^
grsecurity/gracl.c:1196:7: note: in expansion of macro ‘copy_acl_subject_label’
if (copy_acl_subject_label(&s_tmp, userp))
^
grsecurity/gracl.c:3174:12: error: static declaration of ‘copy_acl_role_label_normal’ follows non-static declaration
static int copy_acl_role_label_normal(struct acl_role_label *role, const struct acl_role_label *userp)
^
grsecurity/gracl.c:135:29: note: previous implicit declaration of ‘copy_acl_role_label_normal’ was here
#define copy_acl_role_label copy_acl_role_label_normal
^
grsecurity/gracl.c:1525:7: note: in expansion of macro ‘copy_acl_role_label’
if (copy_acl_role_label(r_tmp, r_utmp2))
^
grsecurity/gracl.c:3182:12: error: static declaration of ‘copy_role_allowed_ip_normal’ follows non-static declaration
static int copy_role_allowed_ip_normal(struct role_allowed_ip *roleip, const struct role_allowed_ip *userp)
^
grsecurity/gracl.c:140:30: note: previous implicit declaration of ‘copy_role_allowed_ip_normal’ was here
#define copy_role_allowed_ip copy_role_allowed_ip_normal
^
grsecurity/gracl.c:1219:7: note: in expansion of macro ‘copy_role_allowed_ip’
if (copy_role_allowed_ip(rtmp, ruserip))
^
grsecurity/gracl.c:3190:12: error: static declaration of ‘copy_sprole_pw_normal’ follows non-static declaration
static int copy_sprole_pw_normal(struct sprole_pw *pw, unsigned long idx, const struct sprole_pw *userp)
^
grsecurity/gracl.c:138:24: note: previous implicit declaration of ‘copy_sprole_pw_normal’ was here
#define copy_sprole_pw copy_sprole_pw_normal
^
grsecurity/gracl.c:1500:7: note: in expansion of macro ‘copy_sprole_pw’
if (copy_sprole_pw(sptmp, i, arg->sprole_pws))
^
grsecurity/gracl.c:3206:12: error: static declaration of ‘copy_role_transition_normal’ follows non-static declaration
static int copy_role_transition_normal(struct role_transition *trans, const struct role_transition *userp)
^
grsecurity/gracl.c:139:30: note: previous implicit declaration of ‘copy_role_transition_normal’ was here
#define copy_role_transition copy_role_transition_normal
^
grsecurity/gracl.c:1254:7: note: in expansion of macro ‘copy_role_transition’
if (copy_role_transition(rtmp, rusertp))
^
grsecurity/gracl.c: In function ‘write_grsec_handler’:
grsecurity/gracl.c:3266:26: error: ‘copy_gr_arg_wrapper_compat’ undeclared (first use in this function)
copy_gr_arg_wrapper = &copy_gr_arg_wrapper_compat;
^
grsecurity/gracl.c:3266:26: note: each undeclared identifier is reported only once for each function it appears in
grsecurity/gracl.c:3267:18: error: ‘copy_gr_arg_compat’ undeclared (first use in this function)
copy_gr_arg = &copy_gr_arg_compat;
^
grsecurity/gracl.c:3268:28: error: ‘copy_acl_object_label_compat’ undeclared (first use in this function)
copy_acl_object_label = &copy_acl_object_label_compat;
^
grsecurity/gracl.c:3269:29: error: ‘copy_acl_subject_label_compat’ undeclared (first use in this function)
copy_acl_subject_label = &copy_acl_subject_label_compat;
^
grsecurity/gracl.c:3270:26: error: ‘copy_acl_role_label_compat’ undeclared (first use in this function)
copy_acl_role_label = &copy_acl_role_label_compat;
^
grsecurity/gracl.c:3271:24: error: ‘copy_acl_ip_label_compat’ undeclared (first use in this function)
copy_acl_ip_label = &copy_acl_ip_label_compat;
^
grsecurity/gracl.c:3272:27: error: ‘copy_role_allowed_ip_compat’ undeclared (first use in this function)
copy_role_allowed_ip = &copy_role_allowed_ip_compat;
^
grsecurity/gracl.c:3273:27: error: ‘copy_role_transition_compat’ undeclared (first use in this function)
copy_role_transition = &copy_role_transition_compat;
^
grsecurity/gracl.c:3274:21: error: ‘copy_sprole_pw_compat’ undeclared (first use in this function)
copy_sprole_pw = &copy_sprole_pw_compat;
^
grsecurity/gracl.c:3275:3: error: ‘copy_gr_hash_struct’ undeclared (first use in this function)
copy_gr_hash_struct = &copy_gr_hash_struct_compat;
^
grsecurity/gracl.c:3275:26: error: ‘copy_gr_hash_struct_compat’ undeclared (first use in this function)
copy_gr_hash_struct = &copy_gr_hash_struct_compat;
^
grsecurity/gracl.c:3276:30: error: ‘copy_pointer_from_array_compat’ undeclared (first use in this function)
copy_pointer_from_array = &copy_pointer_from_array_compat;
^
grsecurity/gracl.c:3277:30: error: ‘get_gr_arg_wrapper_size_compat’ undeclared (first use in this function)
get_gr_arg_wrapper_size = &get_gr_arg_wrapper_size_compat;
^
grsecurity/gracl.c:3279:23: error: lvalue required as left operand of assignment
copy_gr_arg_wrapper = &copy_gr_arg_wrapper_normal;
^
grsecurity/gracl.c:3280:15: error: lvalue required as left operand of assignment
copy_gr_arg = &copy_gr_arg_normal;
^
grsecurity/gracl.c:3281:25: error: lvalue required as left operand of assignment
copy_acl_object_label = &copy_acl_object_label_normal;
^
grsecurity/gracl.c:3282:26: error: lvalue required as left operand of assignment
copy_acl_subject_label = &copy_acl_subject_label_normal;
^
grsecurity/gracl.c:3283:23: error: lvalue required as left operand of assignment
copy_acl_role_label = &copy_acl_role_label_normal;
^
grsecurity/gracl.c:3284:21: error: lvalue required as left operand of assignment
copy_acl_ip_label = &copy_acl_ip_label_normal;
^
grsecurity/gracl.c:3285:24: error: lvalue required as left operand of assignment
copy_role_allowed_ip = &copy_role_allowed_ip_normal;
^
grsecurity/gracl.c:3286:24: error: lvalue required as left operand of assignment
copy_role_transition = &copy_role_transition_normal;
^
grsecurity/gracl.c:3287:18: error: lvalue required as left operand of assignment
copy_sprole_pw = &copy_sprole_pw_normal;
^
grsecurity/gracl.c:3289:27: error: lvalue required as left operand of assignment
copy_pointer_from_array = &copy_pointer_from_array_normal;
^
grsecurity/gracl.c:3290:27: error: lvalue required as left operand of assignment
get_gr_arg_wrapper_size = &get_gr_arg_wrapper_size_normal;
^
cc1: all warnings being treated as errors
make[1]: *** [grsecurity/gracl.o] Error 1
make: *** [grsecurity] Error 2
rolan
 
Posts: 16
Joined: Mon Aug 15, 2011 12:23 am

Re: 3.10.4 && grsecurity/gracl error

Postby spender » Wed Jul 31, 2013 7:03 am

This will be fixed tonight, thanks for the report.

For now you can modify grsecurity/gracl.c:

Find this sequence:
Code: Select all
   pax_open_kernel();
   if (compat) {


change it to:

Code: Select all
#ifdef CONFIG_COMPAT
   pax_open_kernel();
   if (compat) {


then find below it:

Code: Select all
      get_gr_arg_wrapper_size = &get_gr_arg_wrapper_size_normal;
   }
   pax_close_kernel();


and change it to:

Code: Select all
      get_gr_arg_wrapper_size = &get_gr_arg_wrapper_size_normal;
   }
   pax_close_kernel();
#endif


-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: 3.10.4 && grsecurity/gracl error

Postby Hawk » Wed Jul 31, 2013 7:04 am

Same here with gcc 4.7.3, vanilla 3.10.4 + grsecurity-2.9.1-3.10.4-201307302312.patch, but only on i686.
x86_64 having same config (besides architecture related options) is compiling just fine.
Hawk
 
Posts: 4
Joined: Sat Aug 30, 2008 5:43 am

Re: 3.10.4 && grsecurity/gracl error

Postby rolan » Thu Aug 01, 2013 12:22 am

grsecurity-2.9.1-3.10.4-201307311627.patch (equivalent to given manual
directives), still getting:

...
CC grsecurity/gracl.o
grsecurity/gracl.c: In function ‘copy_user_glob’:
grsecurity/gracl.c:1126:3: error: implicit declaration of function ‘copy_acl_object_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_object_label(g_tmp, *guser))
^
grsecurity/gracl.c: In function ‘count_user_subjs’:
grsecurity/gracl.c:1196:3: error: implicit declaration of function ‘copy_acl_subject_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_subject_label(&s_tmp, userp))
^
grsecurity/gracl.c: In function ‘copy_user_allowedips’:
grsecurity/gracl.c:1219:3: error: implicit declaration of function ‘copy_role_allowed_ip_normal’ [-Werror=implicit-function-declaration]
if (copy_role_allowed_ip(rtmp, ruserip))
^
grsecurity/gracl.c: In function ‘copy_user_transitions’:
grsecurity/gracl.c:1254:3: error: implicit declaration of function ‘copy_role_transition_normal’ [-Werror=implicit-function-declaration]
if (copy_role_transition(rtmp, rusertp))
^
grsecurity/gracl.c: In function ‘do_copy_user_subj’:
grsecurity/gracl.c:1341:2: error: implicit declaration of function ‘copy_gr_hash_struct’ [-Werror=implicit-function-declaration]
if (copy_gr_hash_struct(&ghash, s_tmp->hash))
^
grsecurity/gracl.c:1422:3: error: implicit declaration of function ‘copy_pointer_from_array_normal’ [-Werror=implicit-function-declaration]
if (copy_pointer_from_array(&i_utmp2, i_num, s_tmp->ips))
^
grsecurity/gracl.c:1425:3: error: implicit declaration of function ‘copy_acl_ip_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_ip_label(*(i_tmp + i_num), i_utmp2))
^
grsecurity/gracl.c: In function ‘copy_user_acl’:
grsecurity/gracl.c:1500:3: error: implicit declaration of function ‘copy_sprole_pw_normal’ [-Werror=implicit-function-declaration]
if (copy_sprole_pw(sptmp, i, arg->sprole_pws))
^
grsecurity/gracl.c:1525:3: error: implicit declaration of function ‘copy_acl_role_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_role_label(r_tmp, r_utmp2))
^
grsecurity/gracl.c: At top level:
grsecurity/gracl.c:3150:12: error: static declaration of ‘copy_acl_object_label_normal’ follows non-static declaration
static int copy_acl_object_label_normal(struct acl_object_label *obj, const struct acl_object_label *userp)
^
grsecurity/gracl.c:133:31: note: previous implicit declaration of ‘copy_acl_object_label_normal’ was here
#define copy_acl_object_label copy_acl_object_label_normal
^
grsecurity/gracl.c:1126:7: note: in expansion of macro ‘copy_acl_object_label’
if (copy_acl_object_label(g_tmp, *guser))
^
grsecurity/gracl.c:3158:12: error: static declaration of ‘copy_acl_ip_label_normal’ follows non-static declaration
static int copy_acl_ip_label_normal(struct acl_ip_label *ip, const struct acl_ip_label *userp)
^
grsecurity/gracl.c:136:27: note: previous implicit declaration of ‘copy_acl_ip_label_normal’ was here
#define copy_acl_ip_label copy_acl_ip_label_normal
^
grsecurity/gracl.c:1425:7: note: in expansion of macro ‘copy_acl_ip_label’
if (copy_acl_ip_label(*(i_tmp + i_num), i_utmp2))
^
grsecurity/gracl.c:3166:12: error: static declaration of ‘copy_acl_subject_label_normal’ follows non-static declaration
static int copy_acl_subject_label_normal(struct acl_subject_label *subj, const struct acl_subject_label *userp)
^
grsecurity/gracl.c:134:32: note: previous implicit declaration of ‘copy_acl_subject_label_normal’ was here
#define copy_acl_subject_label copy_acl_subject_label_normal
^
grsecurity/gracl.c:1196:7: note: in expansion of macro ‘copy_acl_subject_label’
if (copy_acl_subject_label(&s_tmp, userp))
^
grsecurity/gracl.c:3174:12: error: static declaration of ‘copy_acl_role_label_normal’ follows non-static declaration
static int copy_acl_role_label_normal(struct acl_role_label *role, const struct acl_role_label *userp)
^
grsecurity/gracl.c:135:29: note: previous implicit declaration of ‘copy_acl_role_label_normal’ was here
#define copy_acl_role_label copy_acl_role_label_normal
^
grsecurity/gracl.c:1525:7: note: in expansion of macro ‘copy_acl_role_label’
if (copy_acl_role_label(r_tmp, r_utmp2))
^
grsecurity/gracl.c:3182:12: error: static declaration of ‘copy_role_allowed_ip_normal’ follows non-static declaration
static int copy_role_allowed_ip_normal(struct role_allowed_ip *roleip, const struct role_allowed_ip *userp)
^
grsecurity/gracl.c:140:30: note: previous implicit declaration of ‘copy_role_allowed_ip_normal’ was here
#define copy_role_allowed_ip copy_role_allowed_ip_normal
^
grsecurity/gracl.c:1219:7: note: in expansion of macro ‘copy_role_allowed_ip’
if (copy_role_allowed_ip(rtmp, ruserip))
^
grsecurity/gracl.c:3190:12: error: static declaration of ‘copy_sprole_pw_normal’ follows non-static declaration
static int copy_sprole_pw_normal(struct sprole_pw *pw, unsigned long idx, const struct sprole_pw *userp)
^
grsecurity/gracl.c:138:24: note: previous implicit declaration of ‘copy_sprole_pw_normal’ was here
#define copy_sprole_pw copy_sprole_pw_normal
^
grsecurity/gracl.c:1500:7: note: in expansion of macro ‘copy_sprole_pw’
if (copy_sprole_pw(sptmp, i, arg->sprole_pws))
^
grsecurity/gracl.c:3206:12: error: static declaration of ‘copy_role_transition_normal’ follows non-static declaration
static int copy_role_transition_normal(struct role_transition *trans, const struct role_transition *userp)
^
grsecurity/gracl.c:139:30: note: previous implicit declaration of ‘copy_role_transition_normal’ was here
#define copy_role_transition copy_role_transition_normal
^
grsecurity/gracl.c:1254:7: note: in expansion of macro ‘copy_role_transition’
if (copy_role_transition(rtmp, rusertp))
^
grsecurity/gracl.c: In function ‘write_grsec_handler’:
grsecurity/gracl.c:3254:6: error: unused variable ‘compat’ [-Werror=unused-variable]
int compat = is_compat_task();
^
grsecurity/gracl.c: At top level:
grsecurity/gracl.c:3150:12: error: ‘copy_acl_object_label_normal’ defined but not used [-Werror=unused-function]
static int copy_acl_object_label_normal(struct acl_object_label *obj, const struct acl_object_label *userp)
^
grsecurity/gracl.c:3158:12: error: ‘copy_acl_ip_label_normal’ defined but not used [-Werror=unused-function]
static int copy_acl_ip_label_normal(struct acl_ip_label *ip, const struct acl_ip_label *userp)
^
grsecurity/gracl.c:3166:12: error: ‘copy_acl_subject_label_normal’ defined but not used [-Werror=unused-function]
static int copy_acl_subject_label_normal(struct acl_subject_label *subj, const struct acl_subject_label *userp)
^
grsecurity/gracl.c:3174:12: error: ‘copy_acl_role_label_normal’ defined but not used [-Werror=unused-function]
static int copy_acl_role_label_normal(struct acl_role_label *role, const struct acl_role_label *userp)
^
grsecurity/gracl.c:3182:12: error: ‘copy_role_allowed_ip_normal’ defined but not used [-Werror=unused-function]
static int copy_role_allowed_ip_normal(struct role_allowed_ip *roleip, const struct role_allowed_ip *userp)
^
grsecurity/gracl.c:3190:12: error: ‘copy_sprole_pw_normal’ defined but not used [-Werror=unused-function]
static int copy_sprole_pw_normal(struct sprole_pw *pw, unsigned long idx, const struct sprole_pw *userp)
^
grsecurity/gracl.c:3198:12: error: ‘copy_gr_hash_struct_normal’ defined but not used [-Werror=unused-function]
static int copy_gr_hash_struct_normal(struct gr_hash_struct *hash, const struct gr_hash_struct *userp)
^
grsecurity/gracl.c:3206:12: error: ‘copy_role_transition_normal’ defined but not used [-Werror=unused-function]
static int copy_role_transition_normal(struct role_transition *trans, const struct role_transition *userp)
^
cc1: all warnings being treated as errors
make[1]: *** [grsecurity/gracl.o] Error 1
make: *** [grsecurity] Error 2
rolan
 
Posts: 16
Joined: Mon Aug 15, 2011 12:23 am

Re: 3.10.4 && grsecurity/gracl error

Postby Hawk » Thu Aug 01, 2013 11:01 am

Still fails on i686 (x86_64 builds fine). Here are all errors I'm getting http://pastebin.com/XSf7USr1
Hawk
 
Posts: 4
Joined: Sat Aug 30, 2008 5:43 am

Re: 3.10.4 && grsecurity/gracl error

Postby KDE » Thu Aug 01, 2013 12:14 pm

I have same/similar error as rolan with gcc 4.7.3 on Gentoo x86_64
Code: Select all
grsecurity/gracl.c: In function 'copy_user_glob':
grsecurity/gracl.c:1126:3: error: implicit declaration of function 'copy_acl_object_label_normal' [-Werror=implicit-function-declaration]
grsecurity/gracl.c: In function 'count_user_subjs':
grsecurity/gracl.c:1196:3: error: implicit declaration of function 'copy_acl_subject_label_normal' [-Werror=implicit-function-declaration]
grsecurity/gracl.c: In function 'copy_user_allowedips':
grsecurity/gracl.c:1219:3: error: implicit declaration of function 'copy_role_allowed_ip_normal' [-Werror=implicit-function-declaration]
grsecurity/gracl.c: In function 'copy_user_transitions':
grsecurity/gracl.c:1254:3: error: implicit declaration of function 'copy_role_transition_normal' [-Werror=implicit-function-declaration]
grsecurity/gracl.c: In function 'do_copy_user_subj':
grsecurity/gracl.c:1341:2: error: implicit declaration of function 'copy_gr_hash_struct' [-Werror=implicit-function-declaration]
grsecurity/gracl.c:1422:3: error: implicit declaration of function 'copy_pointer_from_array_normal' [-Werror=implicit-function-declaration]
grsecurity/gracl.c:1425:3: error: implicit declaration of function 'copy_acl_ip_label_normal' [-Werror=implicit-function-declaration]
grsecurity/gracl.c: In function 'copy_user_acl':
grsecurity/gracl.c:1500:3: error: implicit declaration of function 'copy_sprole_pw_normal' [-Werror=implicit-function-declaration]
grsecurity/gracl.c:1525:3: error: implicit declaration of function 'copy_acl_role_label_normal' [-Werror=implicit-function-declaration]
  CC      fs/proc/kmsg.o
grsecurity/gracl.c: At top level:
grsecurity/gracl.c:3150:12: error: static declaration of 'copy_acl_object_label_normal' follows non-static declaration
grsecurity/gracl.c:1126:7: note: previous implicit declaration of 'copy_acl_object_label_normal' was here
grsecurity/gracl.c:3158:12: error: static declaration of 'copy_acl_ip_label_normal' follows non-static declaration
grsecurity/gracl.c:1425:7: note: previous implicit declaration of 'copy_acl_ip_label_normal' was here
grsecurity/gracl.c:3166:12: error: static declaration of 'copy_acl_subject_label_normal' follows non-static declaration
grsecurity/gracl.c:1196:7: note: previous implicit declaration of 'copy_acl_subject_label_normal' was here
grsecurity/gracl.c:3174:12: error: static declaration of 'copy_acl_role_label_normal' follows non-static declaration
grsecurity/gracl.c:1525:7: note: previous implicit declaration of 'copy_acl_role_label_normal' was here
grsecurity/gracl.c:3182:12: error: static declaration of 'copy_role_allowed_ip_normal' follows non-static declaration
grsecurity/gracl.c:1219:7: note: previous implicit declaration of 'copy_role_allowed_ip_normal' was here
grsecurity/gracl.c:3190:12: error: static declaration of 'copy_sprole_pw_normal' follows non-static declaration
grsecurity/gracl.c:1500:7: note: previous implicit declaration of 'copy_sprole_pw_normal' was here
grsecurity/gracl.c:3206:12: error: static declaration of 'copy_role_transition_normal' follows non-static declaration
grsecurity/gracl.c:1254:7: note: previous implicit declaration of 'copy_role_transition_normal' was here
grsecurity/gracl.c: In function 'write_grsec_handler':
grsecurity/gracl.c:3254:6: error: unused variable 'compat' [-Werror=unused-variable]
grsecurity/gracl.c: At top level:
grsecurity/gracl.c:3150:12: error: 'copy_acl_object_label_normal' defined but not used [-Werror=unused-function]
grsecurity/gracl.c:3158:12: error: 'copy_acl_ip_label_normal' defined but not used [-Werror=unused-function]
grsecurity/gracl.c:3166:12: error: 'copy_acl_subject_label_normal' defined but not used [-Werror=unused-function]
grsecurity/gracl.c:3174:12: error: 'copy_acl_role_label_normal' defined but not used [-Werror=unused-function]
grsecurity/gracl.c:3182:12: error: 'copy_role_allowed_ip_normal' defined but not used [-Werror=unused-function]
grsecurity/gracl.c:3190:12: error: 'copy_sprole_pw_normal' defined but not used [-Werror=unused-function]
grsecurity/gracl.c:3198:12: error: 'copy_gr_hash_struct_normal' defined but not used [-Werror=unused-function]
grsecurity/gracl.c:3206:12: error: 'copy_role_transition_normal' defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors
KDE
 
Posts: 57
Joined: Sat Feb 09, 2008 5:29 am

Re: 3.10.4 && grsecurity/gracl error

Postby spender » Thu Aug 01, 2013 6:58 pm

Thanks for the reports, it's fixed in the latest patch.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: 3.10.4 && grsecurity/gracl error

Postby rolan » Fri Aug 02, 2013 6:52 am

grsecurity-2.9.1-3.10.4-201308011855.patch working!, good job.
rolan
 
Posts: 16
Joined: Mon Aug 15, 2011 12:23 am

Re: 3.10.4 && grsecurity/gracl error

Postby Hawk » Fri Aug 02, 2013 11:52 am

Builds and worsk fine here as well. Thanks.
Hawk
 
Posts: 4
Joined: Sat Aug 30, 2008 5:43 am


Return to grsecurity support