View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001100 | bareos-core | bconsole | public | 2019-07-15 15:01 | 2019-12-12 13:30 |
Reporter | franku | Assigned To | franku | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 18.2.5 | ||||
Summary | 0001100: bconsole crashes when a pam authentication aborts | ||||
Description | I want to authenticate using bconsole on a director with PAM enabled. The bconsole tries to authenticate using the interactive mode but stops working with the following output: "free(): double free detected in tcache 2 BAREOS interrupted by signal 6: IOT trap bconsole, bconsole got signal 6 - IOT trap. Attempting traceback." In the director's logfile I can find this: bareos-dir (200): dird/auth_pam.cc:193-0 PAM authentication failed: Error in service module bareos-dir (10): dird/authenticate_console.cc:355-0 ERROR: Unable to authenticate console "PamConsole" at client: | ||||
Steps To Reproduce | I used this code from the bconsole-pam test in the Bareos systemtests (shown only snippets): # etc/pam.d/bareos.in has to be adapted to the right system paths and renamed to etc/pam.d/bareos export PAM_WRAPPER=1 export PAM_WRAPPER_SERVICE_DIR=etc/pam.d/bareos /usr/lib64/libpam_wrapper.so ../../../core/src/dird/bareos-dir -f -c etc/bareos/ -d200 ../../../core/src/console/bconsole -c etc/bareos/ bconsole then asks for a password. After pressing enter the console crashes. | ||||
Additional Information | The bug severity of minor is only justifiable because up to now this bug is known to appear in this special test-environment. | ||||
Tags | No tags attached. | ||||
bareos: master 9f24d0db 2019-07-12 18:36 Ported: N/A Details Diff |
console: reset a pointer variable after free fixes 0001100: bconsole crashes when a pam authentication aborts This fixes a double free of a pointer when the called pam module aborts the authentication i.e. in case of an error |
Affected Issues 0001100 |
|
mod - core/src/console/auth_pam.cc | Diff File | ||
bareos: bareos-18.2 d145c8e9 2019-07-15 17:29 Ported: N/A Details Diff |
console: reset a pointer variable after free fixes 0001100: bconsole crashes when a pam authentication aborts This fixes a double free of a pointer when the called pam module aborts the authentication i.e. in case of an error |
Affected Issues 0001100 |
|
mod - core/src/console/auth_pam.cc | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-07-15 15:01 | franku | New Issue | |
2019-07-15 15:01 | franku | Status | new => assigned |
2019-07-15 15:01 | franku | Assigned To | => franku |
2019-07-15 15:06 | franku | Steps to Reproduce Updated | |
2019-07-15 15:06 | franku | Additional Information Updated | |
2019-07-15 15:09 | franku | Description Updated | |
2019-07-15 15:09 | franku | Steps to Reproduce Updated | |
2019-07-15 15:09 | franku | Additional Information Updated | |
2019-07-15 15:43 | franku | Status | assigned => resolved |
2019-07-15 15:43 | franku | Resolution | open => fixed |
2019-07-15 16:22 | franku | Changeset attached | => bareos master 9f24d0db |
2019-07-15 16:22 | franku | Changeset attached | => bareos bareos-18.2 d145c8e9 |
2019-07-15 16:22 | franku | Note Added: 0003480 | |
2019-10-21 09:48 | franku | Status | resolved => closed |
2019-12-12 13:30 | arogge | Relationship added | related to 0001152 |