[rsbac] problems compiling rsbac

Liviu Sas rsbac@rsbac.org
Thu Aug 29 01:01:03 2002


--Boundary-00=_WBVb9s0PiAAszm0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


	I found the problem, and here is the patch .... I hope it's ok ...
The patch is against 1.2.1-pre5.
	But I found another problem ... Using 2.4.19 an 1.2.1-pre5, I get this whi=
le=20
compiling the kernel:

rsbac/rsbac.o: In function `check_comp_rc':
rsbac/rsbac.o(.text+0x24b3e): undefined reference to=20
`rsbac_net_remote_request'


=2D-=20
The state law of Pennsylvania prohibits singing in the bathtub.

--Boundary-00=_WBVb9s0PiAAszm0
Content-Type: message/rfc822;
  name="forwarded message"
Content-Transfer-Encoding: 8bit
Content-Description: Liviu Sas <liviu@bv.ro>: problems compiling rsbac

From: Liviu Sas <liviu@bv.ro>
Reply-To: liviu@bv.ro
To: rsbac@rsbac.org
Subject: problems compiling rsbac
Date: Thu, 29 Aug 2002 00:03:19 +0300
User-Agent: KMail/1.4.6
X-KMail-Identity: 951991681
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200208290003.19245.liviu@bv.ro>
Status: RO
X-Status: S
X-KMail-EncryptionState:  
X-KMail-SignatureState:  


	I am trying to install rsbac on a test machine, but I get this error when=
=20
compiling the kernel.

gcc -D__KERNEL__ -I/usr/src/linux-2.4.19/include -Wall -Wstrict-prototypes=
=20
=2DWno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer=
=20
=2Dpipe -mpreferred-stack-boundary=3D2 -march=3Di586   -nostdinc -I=20
/usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include=20
=2DDKBUILD_BASENAME=3Dgen_lists  -DEXPORT_SYMTAB -c gen_lists.c
gen_lists.c: In function `rsbac_list_register':
gen_lists.c:4033: parse error before `const'
gen_lists.c:4065: structure has no member named `subdesc_size'
gen_lists.c:4065: structure has no member named `subdata_size'
gen_lists.c:4074: warning: assignment from incompatible pointer type
gen_lists.c:4121: `subcompare' undeclared (first use in this function)
gen_lists.c:4121: (Each undeclared identifier is reported only once
gen_lists.c:4121: for each function it appears in.)
gen_lists.c:4122: `get_subconv' undeclared (first use in this function)
gen_lists.c:4123: `def_subdata' undeclared (first use in this function)
gen_lists.c:4124: incompatible type for argument 1 of `create_lol_reg'
gen_lists.c:4124: warning: assignment from incompatible pointer type
gen_lists.c:4137: warning: passing arg 1 of `read_lol_list' from incompatib=
le=20
pointer type
gen_lists.c:4159: warning: passing arg 1 of `clear_lol_reg' from incompatib=
le=20
pointer type
gen_lists.c:4174: warning: passing arg 1 of `add_lol_reg' from incompatible=
=20
pointer type
gen_lists.c:4174: warning: assignment from incompatible pointer type
gen_lists.c:4182: warning: passing arg 1 of `clear_lol_reg' from incompatib=
le=20
pointer type
gen_lists.c:4213: parse error before `const'
gen_lists.c:4236: `key' undeclared (first use in this function)
make[3]: *** [gen_lists.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.19/rsbac/data_structures'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.19/rsbac/data_structures'
make[1]: *** [_subdir_data_structures] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.19/rsbac'
make: *** [_dir_rsbac] Error 2

	I coulnt't find any info on why does it happend, so I decided to write on=
=20
this mailing list.

Here it is my configuration :

CONFIG_RSBAC=3Dy
# CONFIG_RSBAC_INIT_THREAD is not set
CONFIG_RSBAC_PROC=3Dy
CONFIG_RSBAC_INIT_CHECK=3Dy
CONFIG_RSBAC_NO_WRITE=3Dy
# CONFIG_RSBAC_DEBUG is not set
CONFIG_RSBAC_ADVANCED=3Dy
# CONFIG_RSBAC_DEV_USER_BACKUP is not set
CONFIG_RSBAC_SECOFF_UID=3D400
# CONFIG_RSBAC_MAINT is not set
# CONFIG_RSBAC_NET is not set
CONFIG_RSBAC_REG=3Dy
CONFIG_RSBAC_REG_SAMPLES=3Dy
CONFIG_RSBAC_MAC=3Dy
CONFIG_RSBAC_MAC_DEF_INHERIT=3Dy
CONFIG_RSBAC_MAC_SMART_INHERIT=3Dy
# CONFIG_RSBAC_MAC_AUTH_PROT is not set
# CONFIG_RSBAC_MAC_GEN_PROT is not set
CONFIG_RSBAC_MAC_LIGHT=3Dy
# CONFIG_RSBAC_FC is not set
# CONFIG_RSBAC_SIM is not set
# CONFIG_RSBAC_PM is not set
# CONFIG_RSBAC_MS is not set
# CONFIG_RSBAC_FF is not set
CONFIG_RSBAC_RC=3Dy
CONFIG_RSBAC_RC_AUTH_PROT=3Dy
CONFIG_RSBAC_RC_GEN_PROT=3Dy
CONFIG_RSBAC_RC_BACKUP=3Dy
# CONFIG_RSBAC_AUTH is not set
CONFIG_RSBAC_ACL=3Dy
CONFIG_RSBAC_ACL_SUPER_FILTER=3Dy
# CONFIG_RSBAC_ACL_AUTH_PROT is not set
# CONFIG_RSBAC_ACL_GEN_PROT is not set
CONFIG_RSBAC_ACL_BACKUP=3Dy
CONFIG_RSBAC_CAP=3Dy
# CONFIG_RSBAC_CAP_AUTH_PROT is not set
# CONFIG_RSBAC_SWITCH is not set
CONFIG_RSBAC_SOFTMODE=3Dy
CONFIG_RSBAC_SOFTMODE_SYSRQ=3Dy
# CONFIG_RSBAC_SOFTMODE_IND is not set
# CONFIG_RSBAC_ALLOW_DAC_DISABLE is not set
# CONFIG_RSBAC_SECDEL is not set
# CONFIG_RSBAC_RW is not set
# CONFIG_RSBAC_SYSLOG is not set
# CONFIG_RSBAC_NO_DECISION_ON_NETMOUNT is not set
# CONFIG_RSBAC_SYM_REDIR is not set
# CONFIG_RSBAC_USER_MOD_IOPERM is not set
CONFIG_RSBAC_IND_LOG=3Dy
CONFIG_RSBAC_IND_USER_LOG=3Dy
CONFIG_RSBAC_IND_PROG_LOG=3Dy
CONFIG_RSBAC_LOG_FULL_PATH=3Dy
CONFIG_RSBAC_MAX_PATH_LEN=3D1024
CONFIG_RSBAC_RMSG=3Dy
# CONFIG_RSBAC_RMSG_EXCL is not set
# CONFIG_RSBAC_RMSG_NOSYSLOG is not set
CONFIG_RSBAC_XSTATS=3Dy


Please reply to my personal address, as I am not subscribed to the list... =
yet=20
=2E..

		Thanks in advance ...



=2D-=20
Down with categorical imperative!


--Boundary-00=_WBVb9s0PiAAszm0
Content-Type: text/x-diff;
  charset="us-ascii";
  name="ifdef.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ifdef.patch"

diff -ru rsbac-1.2.1-new/rsbac/data_structures/gen_lists.c rsbac-1.2.1-old/rsbac/data_structures/gen_lists.c
--- rsbac-1.2.1-new/rsbac/data_structures/gen_lists.c	2002-08-29 04:30:29.000000000 +0300
+++ rsbac-1.2.1-old/rsbac/data_structures/gen_lists.c	2002-07-24 18:43:04.000000000 +0300
@@ -3965,8 +3965,8 @@
                printk(KERN_DEBUG "rsbac_list_register: restoring list %s from device %02u:%02u was successful.\n",
                       name,
                       MAJOR(device),MINOR(device));
-#endif
           }
+#endif
       }
 
     rsbac_write_lock(&reg_head.lock, &lock_flags);
@@ -4174,8 +4174,8 @@
                printk(KERN_DEBUG "rsbac_list_lol_register: restoring list %s from device %02u:%02u was successful.\n",
                       name,
                       MAJOR(device),MINOR(device));
-#endif
           }
+#endif
       }
 
     rsbac_write_lock(&lol_reg_head.lock, &lock_flags);
Only in rsbac-1.2.1-new/rsbac/data_structures: gen_lists.c~

--Boundary-00=_WBVb9s0PiAAszm0--