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

jewel: common: global-init: fixup chown of the run directory along with log and asok files #8754

Merged
merged 8 commits into from Jun 27, 2016
Merged

Commits on Apr 26, 2016

  1. ceph-context: add function to set init flags

    Signed-off-by: Karol Mroz <kmroz@suse.com>
    (cherry picked from commit aecab14)
    kmroz committed Apr 26, 2016
    Copy the full SHA
    770ae9e View commit details
    Browse the repository at this point in the history
  2. global-init: add a path chown wrapper function

    Signed-off-by: Karol Mroz <kmroz@suse.com>
    (cherry picked from commit 860977b)
    kmroz committed Apr 26, 2016
    Copy the full SHA
    d4afe94 View commit details
    Browse the repository at this point in the history
  3. global-init: check init flags and set accordingly

    If init flags have changed between the time ceph context was
    instantiated and now, update them. This can happen, for example, if
    between manual global_pre_init() and global_init() calls, a daemon adds
    modifies it's init flags.
    
    Signed-off-by: Karol Mroz <kmroz@suse.com>
    (cherry picked from commit a0ad13d)
    kmroz committed Apr 26, 2016
    Copy the full SHA
    f7e6b3c View commit details
    Browse the repository at this point in the history
  4. common-init: chown admin socket after service thread started

    Signed-off-by: Karol Mroz <kmroz@suse.com>
    (cherry picked from commit 206585c)
    kmroz committed Apr 26, 2016
    Copy the full SHA
    c207544 View commit details
    Browse the repository at this point in the history
  5. global-init: chown run dir

    Also performs log file chown() operations if permission drop has been
    deferred. Documents that admin socket chown() happen in the common init
    path.
    
    Signed-off-by: Karol Mroz <kmroz@suse.com>
    (cherry picked from commit 9d51379)
    kmroz committed Apr 26, 2016
    Copy the full SHA
    5681b78 View commit details
    Browse the repository at this point in the history
  6. global-init: chown pid files

    Signed-off-by: Karol Mroz <kmroz@suse.com>
    (cherry picked from commit 9c82d84)
    kmroz committed Apr 26, 2016
    Copy the full SHA
    2bc4194 View commit details
    Browse the repository at this point in the history
  7. global-init: fixup inconsistent use of ceph ctx and conf

    Signed-off-by: Karol Mroz <kmroz@suse.com>
    (cherry picked from commit 088cc66)
    kmroz committed Apr 26, 2016
    Copy the full SHA
    3963de7 View commit details
    Browse the repository at this point in the history
  8. admin-socket: use chown instead of fchown

    fchown() returns success, but does not change asok file
    ownership. chown() does.
    
    Signed-off-by: Karol Mroz <kmroz@suse.com>
    (cherry picked from commit 3d051a5)
    kmroz committed Apr 26, 2016
    Copy the full SHA
    6c1163c View commit details
    Browse the repository at this point in the history