Skip to contentSkip to conversation

"HASHTAB_OVERFLOW" undeclared

DISCUSSION Ken YANG 4 participants 6 messages Mar 29, 2007 SELinux security module

lore
Share & tools
lore

Ken YANG

author
#0 lore raw

i want to use findcon to find a type "tmpfs_t". but in FC, there is setools* package contaning findcon. i find that secmds(findcon) is in setools-console subpackage why fc has not this subpackage?

i down a setools-3.1-1.src.rpm from tresys site, and encounter a build error:

policy_extend.c: In function 'qpol_policy_build_attrs_from_map':
policy_extend.c:170: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function) policy_extend.c:170: error: (Each undeclared identifier is reported only once policy_extend.c:170: error: for each function it appears in.) policy_extend.c: In function 'qpol_policy_fill_attr_holes':
policy_extend.c:246: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function) make[4]: *** [policy_extend.o] Error 1
make[4]: Leaving directory `/workbench/rpmbuild/BUILD/setools-3.1/libqpol/src'

i have not find "HASHTAB_OVERFLOW" in selinux trunk, especially in libsepol. where is this symbol defined?

by the way, i want checkout setools and try again, but tresys "open source project" site can not access, maybe is temporary :-)

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 5 lines · Ken YANG

i want to use findcon to find a type "tmpfs_t". but in FC, there is setools* package contaning findcon. i find that secmds(findcon) is in setools-console subpackage why fc has not this subpackage?

That's a question for Dan Walsh (cc'd above) or fedora-selinux-list.

Quoted 17 lines

i down a setools-3.1-1.src.rpm from tresys site, and encounter a build error:

policy_extend.c: In function 'qpol_policy_build_attrs_from_map':
policy_extend.c:170: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function)
policy_extend.c:170: error: (Each undeclared identifier is reported only once
policy_extend.c:170: error: for each function it appears in.) policy_extend.c: In function 'qpol_policy_fill_attr_holes':
policy_extend.c:246: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function)
make[4]: *** [policy_extend.o] Error 1
make[4]: Leaving directory `/workbench/rpmbuild/BUILD/setools-3.1/libqpol/src'

Quoted 2 lines

i have not find "HASHTAB_OVERFLOW" in selinux trunk, especially in libsepol. where is this symbol defined?

Those error codes were replaced by standard ones (include/sepol/errcodes.h) in the trunk version of libsepol, so you would need to build setools against the stable branch version of libsepol until they update setools.

Quoted 2 lines

by the way, i want checkout setools and try again, but tresys "open source project" site can not access, maybe is temporary :-)

Appears to be up now.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#2 lore raw
Quoted 7 lines · Stephen Smalley
Quoted 4 lines · Ken YANG

i want to use findcon to find a type "tmpfs_t". but in FC, there is setools* package contaning findcon. i find that secmds(findcon) is in setools-console subpackage why fc has not this subpackage?

That's a question for Dan Walsh (cc'd above) or fedora-selinux-list.

ok, i have cc to fedora-selinux-list

Quoted 14 lines
Quoted 14 lines

i down a setools-3.1-1.src.rpm from tresys site, and encounter a build error:

policy_extend.c: In function 'qpol_policy_build_attrs_from_map':
policy_extend.c:170: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function) policy_extend.c:170: error: (Each undeclared identifier is reported only once policy_extend.c:170: error: for each function it appears in.) policy_extend.c: In function 'qpol_policy_fill_attr_holes':
policy_extend.c:246: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function) make[4]: *** [policy_extend.o] Error 1
make[4]: Leaving directory `/workbench/rpmbuild/BUILD/setools-3.1/libqpol/src'

Quoted 7 lines
Quoted 2 lines

i have not find "HASHTAB_OVERFLOW" in selinux trunk, especially in libsepol. where is this symbol defined?

Those error codes were replaced by standard ones (include/sepol/errcodes.h) in the trunk version of libsepol, so you would need to build setools against the stable branch version of libsepol until they update setools.

thank you.

i play some tricks on the setools :-)

in the spec file of setools-3.1-3.fc7, i find "findcon" and other cmds had been removed:

rm -f ${RPM_BUILD_ROOT}/usr/bin/findcon
rm -f ${RPM_BUILD_ROOT}/usr/bin/replcon
rm -f ${RPM_BUILD_ROOT}/usr/bin/searchcon
rm -f ${RPM_BUILD_ROOT}/usr/bin/indexcon
rm -f ${RPM_BUILD_ROOT}/usr/share/man/man1/searchcon.1 rm -f ${RPM_BUILD_ROOT}/usr/share/man/man1/indexcon.1 rm -f ${RPM_BUILD_ROOT}/usr/share/man/man1/replcon.1 rm -f ${RPM_BUILD_ROOT}/usr/share/man/man1/findcon.1 rm -rf ${RPM_BUILD_ROOT}%{_includedir}/libsefs/sqlite

so i comment "findcon relative" items, and add corresponding items in "files" list.

it seems that this kind of "findcon" works.

this is a temporary method, i just want to use findcon to search certain context

Quoted 6 lines
Quoted 3 lines

by the way, i want checkout setools and try again, but tresys "open source project" site can not access, maybe is temporary :-)

Appears to be up now.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 55 lines · Ken YANG
Quoted 7 lines · Stephen Smalley
Quoted 4 lines · Ken YANG

i want to use findcon to find a type "tmpfs_t". but in FC, there is setools* package contaning findcon. i find that secmds(findcon) is in setools-console subpackage why fc has not this subpackage?

That's a question for Dan Walsh (cc'd above) or fedora-selinux-list.

ok, i have cc to fedora-selinux-list

Quoted 18 lines
Quoted 18 lines

i down a setools-3.1-1.src.rpm from tresys site, and encounter a build error:

policy_extend.c: In function 'qpol_policy_build_attrs_from_map':
policy_extend.c:170: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function)
policy_extend.c:170: error: (Each undeclared identifier is reported only once
policy_extend.c:170: error: for each function it appears in.) policy_extend.c: In function 'qpol_policy_fill_attr_holes':
policy_extend.c:246: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function)
make[4]: *** [policy_extend.o] Error 1
make[4]: Leaving directory `/workbench/rpmbuild/BUILD/setools-3.1/libqpol/src'

Quoted 7 lines
Quoted 2 lines

i have not find "HASHTAB_OVERFLOW" in selinux trunk, especially in libsepol. where is this symbol defined?

Those error codes were replaced by standard ones (include/sepol/errcodes.h) in the trunk version of libsepol, so you would need to build setools against the stable branch version of libsepol until they update setools.

thank you.

i play some tricks on the setools :-)

in the spec file of setools-3.1-3.fc7, i find "findcon" and other cmds had been removed:

rm -f ${RPM_BUILD_ROOT}/usr/bin/findcon
rm -f ${RPM_BUILD_ROOT}/usr/bin/replcon
rm -f ${RPM_BUILD_ROOT}/usr/bin/searchcon
rm -f ${RPM_BUILD_ROOT}/usr/bin/indexcon
rm -f ${RPM_BUILD_ROOT}/usr/share/man/man1/searchcon.1 rm -f ${RPM_BUILD_ROOT}/usr/share/man/man1/indexcon.1 rm -f ${RPM_BUILD_ROOT}/usr/share/man/man1/replcon.1 rm -f ${RPM_BUILD_ROOT}/usr/share/man/man1/findcon.1 rm -rf ${RPM_BUILD_ROOT}%{_includedir}/libsefs/sqlite

Quoted 7 lines

so i comment "findcon relative" items, and add corresponding items in "files" list.

it seems that this kind of "findcon" works.

this is a temporary method, i just want to use findcon to search certain context

How does it differ from find . -context ...?

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
In reply to Stephen Smalley
Quoted 9 lines · Stephen Smalley
Quoted 5 lines · Ken YANG

i want to use findcon to find a type "tmpfs_t". but in FC, there is setools* package contaning findcon. i find that secmds(findcon) is in setools-console subpackage why fc has not this subpackage?

Because the same functionality is available in find.

# find / -context "*tmpfs_t*"
Quoted 26 lines

That's a question for Dan Walsh (cc'd above) or fedora-selinux-list.

Quoted 13 lines

i down a setools-3.1-1.src.rpm from tresys site, and encounter a build error:

policy_extend.c: In function 'qpol_policy_build_attrs_from_map':
policy_extend.c:170: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function) policy_extend.c:170: error: (Each undeclared identifier is reported only once policy_extend.c:170: error: for each function it appears in.) policy_extend.c: In function 'qpol_policy_fill_attr_holes':
policy_extend.c:246: error: 'HASHTAB_OVERFLOW' undeclared (first use in this function) make[4]: *** [policy_extend.o] Error 1
make[4]: Leaving directory `/workbench/rpmbuild/BUILD/setools-3.1/libqpol/src'

Quoted 3 lines

i have not find "HASHTAB_OVERFLOW" in selinux trunk, especially in libsepol. where is this symbol defined?

Those error codes were replaced by standard ones (include/sepol/errcodes.h) in the trunk version of libsepol, so you would need to build setools against the stable branch version of libsepol until they update setools.

Quoted 7 lines
Quoted 3 lines

by the way, i want checkout setools and try again, but tresys "open source project" site can not access, maybe is temporary :-)

Appears to be up now.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw
Quoted 10 lines · Daniel J Walsh
Quoted 9 lines · Stephen Smalley
Quoted 5 lines · Ken YANG

i want to use findcon to find a type "tmpfs_t". but in FC, there is setools* package contaning findcon. i find that secmds(findcon) is in setools-console subpackage why fc has not this subpackage?

Quoted 3 lines

Because the same functionality is available in find.

# find / -context "*tmpfs_t*"

Can this be readded to the FC package? The purpose of this tool is not the same as find though they have similar functionality. The purpose is to index the system and copy the index and the policy off the machine to the machine that you are doing the analysis on (think about analyzing a system without X). Then you can get extra information during analysis without having to be on the machine you're analyzing.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.