Skip to content

Commit cd76ccb

Browse files
songgaommaxim-zoom
andauthored
kbfuse 4.0.5 (keybase#24378)
* kbfuse 4.0.4 * bump installer version to use kbfuse 4.0.4 * update README.md * use the new build command * strib feedback * new installer * update bazil fuse * update kext identifier * uninstall using both old and new kext ID * Revert "uninstall using both old and new kext ID" This reverts commit 5216375. * Revert "update kext identifier" This reverts commit dab445d. * just change the kbfuse identifier back * fix redirector mounting * update fuse vendor to master commit * new installer version built with xcode12.3beta * macFuse 4.0.5 * update bazil/fuse vendor for better error handling * bump helper/installer version * helper: fall back to kmutil for kext unload on macOS 11 * ahhhhhhhhhhhh * update helper prompt text Co-authored-by: Mike Maxim <mike.maxim@zoom.us>
1 parent ce81c7b commit cd76ccb

47 files changed

Lines changed: 605 additions & 213 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎go/kbfs/libfuse/mounter_osx.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var kbfusePath = fuse.OSXFUSEPaths{
1717
DevicePrefix: "/dev/kbfuse",
1818
Load: "/Library/Filesystems/kbfuse.fs/Contents/Resources/load_kbfuse",
1919
Mount: "/Library/Filesystems/kbfuse.fs/Contents/Resources/mount_kbfuse",
20-
DaemonVar: "MOUNT_KBFUSE_DAEMON_PATH",
20+
DaemonVar: "_FUSE_DAEMON_PATH",
2121
}
2222

2323
func getPlatformSpecificMountOptions(dir string, platformParams PlatformParams) ([]fuse.MountOption, error) {

‎go/kbfs/redirector/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var kbfusePath = fuse.OSXFUSEPaths{
3232
DevicePrefix: "/dev/kbfuse",
3333
Load: "/Library/Filesystems/kbfuse.fs/Contents/Resources/load_kbfuse",
3434
Mount: "/Library/Filesystems/kbfuse.fs/Contents/Resources/mount_kbfuse",
35-
DaemonVar: "MOUNT_KBFUSE_DAEMON_PATH",
35+
DaemonVar: "_FUSE_DAEMON_PATH",
3636
}
3737

3838
const (

‎go/vendor/bazil.org/fuse/mount_darwin.go‎

Lines changed: 110 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎go/vendor/bazil.org/fuse/options.go‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎go/vendor/vendor.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,32 @@
1515
"revision": ""
1616
},
1717
{
18-
"checksumSHA1": "uH8rNmMIuS++uGlnxvxg9JSU4yU=",
18+
"checksumSHA1": "wDT1/ePo3+9T5GWbwv/0Z6mN+wk=",
1919
"origin": "github.com/keybase/fuse",
2020
"path": "bazil.org/fuse",
21-
"revision": "5a45981690d8c47319ea10f5f1c1ba6e2cc0147b",
22-
"revisionTime": "2019-03-20T19:19:38Z"
21+
"revision": "d36009698767b761983aeddcce251df597dac424",
22+
"revisionTime": "2021-01-04T23:24:44Z"
2323
},
2424
{
2525
"checksumSHA1": "0VZprIyGgeTGEUPP3OYMTJCRtJY=",
2626
"origin": "github.com/keybase/fuse/fs",
2727
"path": "bazil.org/fuse/fs",
28-
"revision": "5a45981690d8c47319ea10f5f1c1ba6e2cc0147b",
29-
"revisionTime": "2019-03-20T19:19:38Z"
28+
"revision": "d36009698767b761983aeddcce251df597dac424",
29+
"revisionTime": "2021-01-04T23:24:44Z"
3030
},
3131
{
3232
"checksumSHA1": "wy8DrEJ4Al2iZk5hKQEbIqaghGM=",
3333
"origin": "github.com/keybase/fuse/fs/fstestutil",
3434
"path": "bazil.org/fuse/fs/fstestutil",
35-
"revision": "5a45981690d8c47319ea10f5f1c1ba6e2cc0147b",
36-
"revisionTime": "2019-03-20T19:19:38Z"
35+
"revision": "d36009698767b761983aeddcce251df597dac424",
36+
"revisionTime": "2021-01-04T23:24:44Z"
3737
},
3838
{
3939
"checksumSHA1": "NPgkh9UWMsaTtsAAs3kPrclHT9Y=",
4040
"origin": "github.com/keybase/fuse/fuseutil",
4141
"path": "bazil.org/fuse/fuseutil",
42-
"revision": "5a45981690d8c47319ea10f5f1c1ba6e2cc0147b",
43-
"revisionTime": "2019-03-20T19:19:38Z"
42+
"revision": "d36009698767b761983aeddcce251df597dac424",
43+
"revisionTime": "2021-01-04T23:24:44Z"
4444
},
4545
{
4646
"checksumSHA1": "hYtV4dXAd8dkPaVJZZ8tqJzKlBo=",

‎osx/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ Pods
2323
Install/build/*
2424
Install/bin
2525
osxfuse
26+
macfuse
2627
*.bottle.tar.gz

‎osx/Fuse/README.md‎

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ KBFuse is OSXFuse (or Fuse for MacOS) "branded" for Keybase. This is so we can m
44
conflicting with existing OSXFuse installs. It also allows us to sign the kext with our certificate instead
55
of relying on 3rd party binaries shipped from other developers.
66

7-
For simplicity, we'll drop 10.10 and only support 10.11+ for the fuse
8-
extension. See the "Notes on 10.10" below for how to build for 10.10.
9-
107
### Pre-requisites
118

129
#### Xcode
@@ -17,19 +14,20 @@ an older kernel and run it on newer kernels. So we'll try to build for the
1714
oldest possible (compatible) kernel, to have a fewer kernel extensions built as
1815
possible.
1916

20-
For OSXFuse, it's possible to use a kernel extension that's built
21-
against the macOS 10.11 SDK on macOS 10.12, 10.13, 10.14 and 10.15. So
22-
we'll build for 10.11 kernel, then we'd make symlinks for 10.12,
23-
10.13, 10.14 and 10.15 whose target is 10.11. All these are handled by
24-
the build script, but we'll need the appropriate SDKs to build
17+
For OSXFuse, it's possible to use a kernel extension that's built against the
18+
macOS 10.14 SDK on macOS 10.12, 10.13, 10.14 and 10.15. However, to build
19+
against 10.11 we need to be on an older macOS. So are targeting 10.14+ now.
20+
We'll build for 10.14, then we'll make symlinks for 10.15. All these are
21+
handled by the build script, but we'll need the appropriate SDKs to build
2522
against.
2623

27-
Xcode 7.3.1 is the latest version that includes the macOS 10.11 SDK, so we'll
28-
need it installed on the macOS where you build the KBFuse bundle.
24+
Xcode 10.3 is the latest version that includes the macOS 10.14 SDK, so we'll
25+
need it installed on the macOS where you build the KBFuse bundle. Additionally,
26+
macOS 11 needs to be built with Xcode 12.3, so we need that as well.
2927

3028
Older versions of Xcode can be downloaded from the [Apple official developer
3129
site](https://developer.apple.com/download/more/). It has to live under
32-
`/Applications`, but under a different name, e.g. `/Applications/Xcode-7.3.1`.
30+
`/Applications`, but under a different name, e.g. `/Applications/Xcode-10.3`.
3331
Don't worry about making the naming scheme exact, as the OSXFuse builder is
3432
able to spotlight different versions automatically.
3533
[Here](https://medium.com/@hacknicity/working-with-multiple-versions-of-xcode-e331c01aa6bc)'s
@@ -39,11 +37,13 @@ same machine.
3937
#### Signing certificate
4038

4139
You'll also need the Keybase signing certificate. Ask around if you don't have
42-
access to it.
40+
access to it. Also see
41+
[this](https://github.com/keybase/client/tree/master/osx/Scripts#build-the-installer)
42+
for some pointers.
4343

4444
### Building KBFuse
4545

46-
VERSION=3.6.3 ./build.sh
46+
VERSION=4.0.4 ./build.sh
4747

4848
This should generate a kbfuse.bundle (and fsbundle.tgz, that includes debug symbols)
4949
which you can submit for PR.
@@ -81,27 +81,3 @@ View kext status:
8181

8282
sudo kextstat -b com.github.kbfuse.filesystems.kbfuse
8383

84-
### Notes on 10.10:
85-
86-
Although we can use 10.11 extension on newer kernels, we can't use 10.10
87-
extension on newer kernels. So to support all macOS versions starting from
88-
10.10+, we'd need to build 2 kernel extensions, one for 10.10, and one for
89-
10.11 and its newer siblings.
90-
91-
Xcode 6.4 is the latest version that includes the 10.10 SDK. So it needs to be
92-
installed like we did with XCode 7.3.1. Unfortunately Xcode 6.4 is not
93-
supported on macOS 10.14 anymore, so we'd need a build machine running 10.13 to
94-
support all.
95-
96-
The build script is not setup up to build for 10.10 either. If this is needed,
97-
we need to replace this line (in `osx/Fuse/build.sh`):
98-
99-
```
100-
./build.sh -v 5 -t fsbundle -- -s 10.11 -d 10.11 --kext=10.11 --kext="10.12->10.11" --kext="10.13->10.11" --kext="10.14->10.11"
101-
```
102-
103-
with
104-
105-
```
106-
./build.sh -v 5 -t fsbundle -- -s 10.10 -d 10.10 --kext=10.10 --kext=10.11 --kext="10.12->10.11" --kext="10.13->10.11" --kext="10.14->10.11"
107-
```

0 commit comments

Comments
 (0)