Skip to content

Commit

Permalink
feat: set permissions for suid sandbox helper (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon authored and malept committed May 2, 2019
1 parent 3cfed02 commit 174f4c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"debug": "^4.1.1",
"electron-installer-common": "^0.6.1",
"electron-installer-common": "^0.6.2",
"fs-extra": "^7.0.1",
"lodash": "^4.17.4",
"nodeify": "^1.0.1",
Expand Down
8 changes: 8 additions & 0 deletions src/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ class RedhatInstaller extends common.ElectronInstaller {
return path.join(this.stagingDir, 'SPECS', `${this.options.name}.spec`)
}

/**
* Copy the application into the package.
*/
copyApplication () {
return super.copyApplication()
.then(() => this.updateSandboxHelperPermissions())
}

/**
* Creates macros file used by `rpmbuild`.
*/
Expand Down

0 comments on commit 174f4c1

Please sign in to comment.