diff options
author | Lauri Aarnio <Lauri.Aarnio@iki.fi> | 2008-11-07 13:58:56 +0200 |
---|---|---|
committer | Lauri Leukkunen <lle@rahina.org> | 2008-12-07 04:32:46 +0200 |
commit | ab2e89761025a9f3830988bf8a72e217d7c5018e (patch) | |
tree | 1c53e3e8958488d41361937ca2225425098bcdee /include | |
parent | daf3b68da1ece0b3ca29ea365b313cc69abf1d38 (diff) |
Fixes for dirfd handling for openat(), faccessat(), etc *at() functions
- Added a pathname cache/db, which keeps fd=>path mappings. Those
are needed for correct operation of openat() and friends.
- NOTE: This is an initial version; there are still features that
missing! To be extended later..
Diffstat (limited to 'include')
-rw-r--r-- | include/mapping.h | 4 | ||||
-rw-r--r-- | include/sb2.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/mapping.h b/include/mapping.h index a9f9af4..89fa113 100644 --- a/include/mapping.h +++ b/include/mapping.h @@ -15,6 +15,8 @@ extern char *scratchbox_path(const char *func_name, const char *path, int *ro_flagp, int dont_resolve_final_symlink); +extern char *scratchbox_path_at(const char *func_name, int dirfd, + const char *path, int *ro_flagp, int dont_resolve_final_symlink); extern char *scratchbox_path3(const char *binary_name, const char *func_name, const char *path, int *ro_flagp, int dont_resolve_final_symlink); char *scratchbox_path_for_exec(const char *func_name, const char *path, @@ -32,4 +34,6 @@ extern char *sb_query_exec_policy(const char *field_name, extern char *scratchbox_reverse_path( const char *func_name, const char *full_path); +extern const char *fdpathdb_find_path(int fd); + #endif diff --git a/include/sb2.h b/include/sb2.h index dd0ffae..41a720c 100644 --- a/include/sb2.h +++ b/include/sb2.h @@ -97,5 +97,7 @@ extern char *sbox_real_binary_name; extern int pthread_library_is_available; /* flag */ extern pthread_t (*pthread_self_fnptr)(void); +extern int (*pthread_mutex_lock_fnptr)(pthread_mutex_t *mutex); +extern int (*pthread_mutex_unlock_fnptr)(pthread_mutex_t *mutex); #endif |