Menu

#1470 log: Mutex is not always LOCKED when _hdl functions return

never
duplicate
nobody
None
defect
log
-
minor
False
2017-05-12
2015-09-03
No

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

Related

Tickets: #2452

Discussion

  • Anders Widell

    Anders Widell - 2015-11-02
    • Milestone: 4.5.2 --> 4.6.2
     
  • Mathi Naickan

    Mathi Naickan - 2016-05-04
    • Milestone: 4.6.2 --> 4.7.2
     
  • Anders Widell

    Anders Widell - 2016-09-20
    • Milestone: 4.7.2 --> 5.0.2
     
  • Anders Widell

    Anders Widell - 2017-04-03
    • Milestone: 5.0.2 --> future
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-05-12
    • status: unassigned --> duplicate
    • Blocker: --> False
    • Milestone: future --> never
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-05-12

    Refer to [#2452]

     

    Related

    Tickets: #2452


Log in to post a comment.