Bug 8142

Summary: cap_[gs]et_file missing (breaks zsh/cap.so)
Product: Sisyphus Reporter: at <at>
Component: libcapAssignee: Mikhail Efremov <sem>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm, ldv, sem
Version: unstable   
Hardware: all   
OS: Linux   

Description at@altlinux.org 2005-10-05 18:03:03 MSD
* Mon Aug 15 2005 Dmitry V. Levin <ldv@altlinux> 1:1.10-alt13
- Restricted list of global symbols exported by the library.

zsh     /usr/lib/zsh/cap.so     U       cap_get_file
zsh     /usr/lib/zsh/cap.so     U       cap_set_file

/usr/include/sys/capability.h:cap_t   cap_get_file(const char *);
/usr/include/sys/capability.h:int     cap_set_file(const char *, cap_t);
Comment 1 Dmitry V. Levin 2005-10-05 23:45:48 MSD
I think this bug report is wrong, because cap_file.c was not included to the
library, and these files was not exported.
Comment 2 at@altlinux.org 2005-10-06 10:41:47 MSD
Yep, I see now it has nothing to do with restricted export, 'cause
cap_get_file() wasn't there anyway.  So I change the description as follows:

sys/capability.h exposes cap_get_file() and cap_set_file() as part of public
API, while as libcap.so.1 fails to provide corresponding text symbols.
Comment 3 Dmitry V. Levin 2005-10-06 15:36:03 MSD
OK, prototypes of these functions will be removed from sys/capability.h
Comment 4 Dmitry V. Levin 2005-10-07 00:05:34 MSD
Removed these prototypes in 1.10-alt14.