- **status**: unassigned --> duplicate
- **Blocker**:  --> False
- **Milestone**: future --> never
- **Comment**:

Refer to [#2452]



---

** [tickets:#1470] log: Mutex is not always LOCKED when _hdl functions return**

**Status:** duplicate
**Milestone:** never
**Created:** Thu Sep 03, 2015 09:17 AM UTC by Vu Minh Nguyen
**Last Updated:** Tue Sep 20, 2016 06:04 PM UTC
**Owner:** nobody


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:

1. 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/

2. 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


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to