In every _hdl
functions @ lgs_filehdl.c
, they are required to UNLOCK Mutex inside the _hdl
functions and LOCK Mutex when _hdl
functions return.
But in the functions path_is_writeable_dir_hdl()
and write_log_record_hdl()
, the above condition is not always true in some cases.
Following case is an example:
Create a folder with no allowed permissions.
me@:~/opensaf/opensaf-staging/tools/cluster_sim_uml/repl-opensaf$ ll
d--------- 2 osboxes osboxes 4096 Aug 31 07:51 denied/
Change logRootDirectory
to above folder:
immcfg -a logRootDirectory="/repl_opensaf/denied" logConfig=1,safApp=safLogService
error - saImmOmCcbApply FAILED: SA_AIS_ERR_FAILED_OPERATION (21)
OI reports: pathName: /repl_opensaf/denied is NOT accepted
Refer to [#2452]
Related
Tickets:
#2452