From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 Description of problem: Starting program: /var/rpmbuild/BUILD/setools-1.5.1/secmds/seinfo Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <bruce> Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <bruce> Program received signal SIGSEGV, Segmentation fault. 0x05acb8a6 in strcpy () from /lib/tls/libc.so.6 (gdb) bt #0 0x05acb8a6 in strcpy () from /lib/tls/libc.so.6 #1 0x08052659 in search_policy_src_file (policy_file_path=0x80729e4) at policy-io.c:350 #2 0x080526fd in find_default_policy_file (search_opt=3, policy_file_path=0x80729e4) at policy-io.c:379 #3 0x0804abbf in main (argc=1, argv=0xbfee2f54) at seinfo.c:545 patch attached. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. run seinfo or some other program using the crashy function 2. 3. Actual Results: strcpy caused segfault in the offending function Expected Results: seinfo should have not segfaulted :) Additional info: libselinux-1.18.1-4 setools-1.5.1-1
Created attachment 106261 [details] fix to calculate path len correctly
Applied in setools-1.5.1-2, and notified upstream. Thanks. Dan