ubuntu / aad-auth

Azure AD authentication module for Ubuntu
GNU Lesser General Public License v3.0
143 stars 22 forks source link

Passwddb locking fix (nss_aad: database error: database is locked) #376

Closed johne8 closed 10 months ago

johne8 commented 10 months ago

fix: nss_aad: database error: database is locked

ref: aad_auth[2196]: nss_aad: database error: database is locked

This adresses this, by using Write-ahead logging journaling mode when openening the database in ReadWrite mode, and opening the database immutable when opening it in ReadOnly mode.

PASS when build and test with autopkgtest.

codecov[bot] commented 10 months ago

Codecov Report

Merging #376 (8732375) into main (973d736) will increase coverage by 0.02%. Report is 5 commits behind head on main. The diff coverage is 91.66%.

@@            Coverage Diff             @@
##             main     #376      +/-   ##
==========================================
+ Coverage   83.20%   83.23%   +0.02%     
==========================================
  Files          36       36              
  Lines        2954     2964      +10     
  Branches      275      279       +4     
==========================================
+ Hits         2458     2467       +9     
- Misses        376      377       +1     
  Partials      120      120              
Files Coverage Δ
internal/cache/cachedb.go 62.68% <100.00%> (ø)
nss/src/cache/mod.rs 84.96% <90.90%> (+0.11%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

github-actions[bot] commented 10 months ago

Everyone contributing to this PR have now signed the CLA. Thanks!