Skip to content

Commit

Permalink
add sbin dir to sign list
Browse files Browse the repository at this point in the history
  • Loading branch information
mbektas committed Jan 22, 2024
1 parent b7c426b commit cba03c8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
11 changes: 11 additions & 0 deletions env_installer/sign-osx-64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -520,3 +520,14 @@ libexec/lzo/examples/lzopack
libexec/lzo/examples/lzotest
libexec/lzo/examples/simple
libexec/lzo/examples/testmini
sbin/gss-server
sbin/kadmin.local
sbin/kadmind
sbin/kdb5_util
sbin/kprop
sbin/kpropd
sbin/kproplog
sbin/krb5kdc
sbin/sim_server
sbin/sserver
sbin/uuserver
11 changes: 11 additions & 0 deletions env_installer/sign-osx-arm64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -512,3 +512,14 @@ libexec/lzo/examples/lzopack
libexec/lzo/examples/lzotest
libexec/lzo/examples/simple
libexec/lzo/examples/testmini
sbin/gss-server
sbin/kadmin.local
sbin/kadmind
sbin/kdb5_util
sbin/kprop
sbin/kpropd
sbin/kproplog
sbin/krb5kdc
sbin/sim_server
sbin/sserver
sbin/uuserver
8 changes: 5 additions & 3 deletions scripts/buildutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,15 @@ if (cli.flags.updateBinarySignList) {
const { isBinary } = require('istextorbinary');
const envInstallerDir = path.resolve('env_installer', 'jlab_server');
const envBinDir = path.join(envInstallerDir, 'bin');
const libExecDir = path.join(envInstallerDir, 'libexec');
const envSbinDir = path.join(envInstallerDir, 'sbin');
const envLibexecDir = path.join(envInstallerDir, 'libexec');

const needsSigning = filePath => {
// only consider bin & libexec directory, and .so, .dylib files in other directories
// consider bin, libexec, sbin directories, and .so, .dylib files in other directories
if (
filePath.startsWith(envBinDir) ||
filePath.startsWith(libExecDir) ||
filePath.startsWith(envLibexecDir) ||
filePath.startsWith(envSbinDir) ||
filePath.endsWith('.so') ||
filePath.endsWith('.dylib')
) {
Expand Down

0 comments on commit cba03c8

Please sign in to comment.