[rsbac] 1.2.2: compilation error

Emmanuel Chantreau ml-tech.rsbac at maretmanu.org
Mon Mar 8 19:29:18 CET 2004


Hello

Version: kernel 2.4.25 and rsbac 1.2.2 with bugfix 1->7
compilation option: 
  CONFIG_RSBAC_NO_WRITE is not set
  CONFIG_RSBAC_DEBUG is not set

compil error: aci_data_structures.c:281: error: `rsbac_debug_no_write' undeclared (first use in this function)

My solution was to set CONFIG_RSBAC_DEBUG on.

The pb is at least in file "./data_structures/aci_data_structures.c:"

you have :
#ifdef CONFIG_RSBAC_NO_WRITE
   return(FALSE);
#else
   if (!sb_p || !sb_p->s_dev)
     return(FALSE);
   if (
       rsbac_debug_no_write ||
       (sb_p->s_flags & MS_RDONLY)
       || in_interrupt())
     return(FALSE);
   if (   !MAJOR(sb_p->s_dev)

wich assume that rsbac_debug_no_write is defined when CONFIG_RSBAC_NO_WRITE
is unset.

Detail below:
-------------

compilation log:
----------------


make[3]: Entering directory `/var/compil/kernel-source-2.4.25/rsbac/data_structures'
/usr/bin/make all_targets
make[4]: Entering directory `/var/compil/kernel-source-2.4.25/rsbac/data_structures'
gcc -D__KERNEL__ -I/var/compil/kernel-source-2.4.25/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon   -nostdinc -iwithprefix include -DKBUILD_BASENAME=aci_data_structures  -DEXPORT_SYMTAB -c aci_data_structures.c
aci_data_structures.c: In function `writable':
aci_data_structures.c:281: error: `rsbac_debug_no_write' undeclared (first use in this function)
aci_data_structures.c:281: error: (Each undeclared identifier is reported only once
aci_data_structures.c:281: error: for each function it appears in.)
aci_data_structures.c: In function `rsbacd':
aci_data_structures.c:7501: error: `rsbac_debug_no_write' undeclared (first use in this function)
aci_data_structures.c: In function `rsbac_mount':
aci_data_structures.c:7734: error: `rsbac_debug_no_write' undeclared (first use in this function)
aci_data_structures.c: In function `rsbac_umount':
aci_data_structures.c:7933: error: `rsbac_debug_no_write' undeclared (first use in this function)
aci_data_structures.c: In function `rsbac_write':
aci_data_structures.c:9254: error: `rsbac_debug_no_write' undeclared (first use in this function)
make[4]: *** [aci_data_structures.o] Error 1
make[4]: Leaving directory `/var/compil/kernel-source-2.4.25/rsbac/data_structures'

*RSBAC* config:
---------------

# Rule Set Based Access Control (RSBAC)
CONFIG_RSBAC=y
# General RSBAC options
# CONFIG_RSBAC_INIT_THREAD is not set
CONFIG_RSBAC_PROC=y
# CONFIG_RSBAC_INIT_CHECK is not set
# CONFIG_RSBAC_NO_WRITE is not set
# CONFIG_RSBAC_MSDOS_WRITE is not set
CONFIG_RSBAC_AUTO_WRITE=2
# CONFIG_RSBAC_DEBUG is not set
# CONFIG_RSBAC_DEV_USER_BACKUP is not set
CONFIG_RSBAC_SECOFF_UID=400
CONFIG_RSBAC_INIT_DELAY=y
# CONFIG_RSBAC_MAINT is not set
# RSBAC networking options
CONFIG_RSBAC_NET=y
CONFIG_RSBAC_NET_DEV=y
# CONFIG_RSBAC_NET_DEV_VIRT is not set
# CONFIG_RSBAC_IND_NETDEV_LOG is not set
CONFIG_RSBAC_NET_OBJ=y
CONFIG_RSBAC_NET_OBJ_UNIX=y
# CONFIG_RSBAC_NET_OBJ_RW is not set
# CONFIG_RSBAC_IND_NETOBJ_LOG is not set
CONFIG_RSBAC_REG=y
# CONFIG_RSBAC_REG_SAMPLES is not set
# CONFIG_RSBAC_MAC is not set
# 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=y
# CONFIG_RSBAC_RC_AUTH_PROT is not set
# CONFIG_RSBAC_RC_GEN_PROT is not set
# CONFIG_RSBAC_RC_BACKUP is not set
CONFIG_RSBAC_RC_NET_DEV_PROT=y
CONFIG_RSBAC_RC_NET_OBJ_PROT=y
CONFIG_RSBAC_RC_NR_P_LISTS=4
# CONFIG_RSBAC_AUTH is not set
# CONFIG_RSBAC_ACL is not set
# CONFIG_RSBAC_CAP is not set
# CONFIG_RSBAC_JAIL is not set
# CONFIG_RSBAC_RES is not set
CONFIG_RSBAC_SWITCH=y
# CONFIG_RSBAC_SOFTMODE is not set
CONFIG_RSBAC_IND_LOG=y
CONFIG_RSBAC_IND_USER_LOG=y
CONFIG_RSBAC_IND_PROG_LOG=y
CONFIG_RSBAC_LOG_FULL_PATH=y
CONFIG_RSBAC_MAX_PATH_LEN=512
# CONFIG_RSBAC_RMSG is not set
# CONFIG_RSBAC_SYM_REDIR 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_IPC_SEM is not set
# CONFIG_RSBAC_DAC_OWNER is not set
# CONFIG_RSBAC_SYSLOG is not set
# CONFIG_RSBAC_DAT_VISIBLE is not set
# CONFIG_RSBAC_NO_DECISION_ON_NETMOUNT is not set
CONFIG_RSBAC_USER_MOD_IOPERM=y
# CONFIG_RSBAC_XSTATS is not set

thanks

-- 
Emmanuel Chantréau
100% des gens sont dans une minorité de moins de 5% des gens.


More information about the rsbac mailing list