Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sssd components mishandles sighup for helper processes #3720

Closed
sssd-bot opened this issue May 2, 2020 · 0 comments
Closed

sssd components mishandles sighup for helper processes #3720

sssd-bot opened this issue May 2, 2020 · 0 comments

Comments

@sssd-bot
Copy link

sssd-bot commented May 2, 2020

Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/2679


Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 6): Bug 1232303

Description of problem:
This BZ is related to #886038

sssd doesn't properly close fds from helper processes like krb5_child:

# ls /proc/*/fd -l| grep deleted
l-wx------. 1 root root 64 Jun  3 10:13 18 ->
/var/log/sssd/krb5_child.log-20150512 (deleted)

ssd debug_log_file is opened with open_debug_file_ex(..., bool want_cloexec):

[...]

(want_cloexec) {
         flags = fcntl(debug_fd, F_GETFD, 0);
         (void) fcntl(debug_fd, F_SETFD, flags | FD_CLOEXEC);
     }

(from util/debug.c)

This is not the case for LDAP_CHILD_LOG_FILE and KRB5_CHILD_LOG_FILE:

$ grep -iR CHILD_LOG_FILE providers/
providers/krb5/krb5_init_shared.c:        ret =
open_debug_file_ex(KRB5_CHILD_LOG_FILE, &debug_filep, false);
providers/ldap/sdap_child_helpers.c:        ret =
open_debug_file_ex(LDAP_CHILD_LOG_FILE, &debug_filep, false);


Version-Release number of selected component (if applicable):
sssd-1.11.6-30.el6_6.3.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comments


Comment from jhrozek at 2015-06-16 18:29:07

Fields changed

blockedby: =>
blocking: =>
changelog: =>
coverity: =>
design: =>
design_review: => 0
feature_milestone: =>
fedora_test_page: =>
mark: no => 0
owner: somebody => mzidek
review: True => 0
selected: =>
testsupdated: => 0


Comment from jhrozek at 2015-06-18 16:09:54

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.13 beta


Comment from jhrozek at 2015-08-05 13:19:54

Fields changed

priority: major => minor


Comment from jhrozek at 2015-08-20 18:13:18

Fields changed

milestone: SSSD 1.13.1 => SSSD 1.13.2


Comment from jhrozek at 2015-09-17 16:16:17

Fields changed

milestone: SSSD 1.13.2 => SSSD 1.13.3


Comment from jhrozek at 2015-10-11 22:09:26

De-prioritizing to Deferred...

milestone: SSSD 1.13.3 => SSSD Deferred


Comment from jhrozek at 2017-02-24 14:35:25

Metadata Update from @jhrozek:

  • Issue assigned to mzidek
  • Issue set to the milestone: SSSD Patches welcome

Comment from jhrozek at 2018-03-06 10:12:07

Closing as duplicate of #3647 (because that one has a valid downstream link, so this direction is easier)


Comment from jhrozek at 2018-03-06 10:12:07

Metadata Update from @jhrozek:

  • Custom field design_review reset (from 0)
  • Custom field mark reset (from 0)
  • Custom field patch reset (from 0)
  • Custom field review reset (from 0)
  • Custom field sensitive reset (from 0)
  • Custom field testsupdated reset (from 0)
  • Issue close_status updated to: duplicate
  • Issue status updated to: Closed (was: Open)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants