Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
apparmor
apparmor
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 63
    • Issues 63
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 22
    • Merge Requests 22
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • AppArmor
  • apparmorapparmor
  • Issues
  • #66

Closed
Open
Opened Nov 23, 2019 by madaidan@madaidan💬

Add a way to whitelist variables from environment scrubbing

I want to use hardened_malloc along with a binary that is executed with environment scrubbing. To use hardened_malloc, I need to use LD_PRELOAD which environment scrubbing clears.

Because of this, it would be great if it was possible to whitelist specific environment variables from scrubbing. For example:

/bin/bash Pix allow_var="LD_PRELOAD=/usr/lib/libhardened_malloc.so",

This would allow me to execute bash with hardened_malloc but nothing else.

Using hardened_malloc system-wide is not an option due to the amount of breakage.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: apparmor/apparmor#66