Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
apk-tools
apk-tools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 60
    • Issues 60
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
    • Merge Requests 13
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • apk-toolsapk-tools
  • Issues
  • #6591

Closed
Open
Opened Dec 27, 2016 by Jakub Skrzypnik@skrzyp
  • Report abuse
  • New issue
Report abuse New issue

APK is executing scripts inside /var/cache, and it prevents normal operation

Hello,

I was trying complex ZFS pools, so I added the /var/cache as separate ZFS volume.
As security mesaure, I’ve disabled execution on it, to reduce attack surface.

And it broke APK:

ERROR:  packagename }}-{{packageversion : script exited with error 1

From some debugging I’ve figured out that APK executes post/pre-install scripts inside /var/cache directly after unpacking .apk files.

PROPOSED SOLUTION: Move the unpacking and processing phase into /tmp, remove files after processing

(from redmine: issue id 6591, created on 2016-12-27)

  • Relations:
    • relates #129 (closed)
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
Bug New Normal
Assign labels
  • View project labels
Reference: alpine/apk-tools#6591