fortify: switch to static linking
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
124743ffd3
commit
b60c01f440
@ -1,12 +1,12 @@
|
|||||||
name: Nix
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
dist:
|
||||||
name: NixOS tests
|
name: Create distribution
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -30,17 +30,21 @@ jobs:
|
|||||||
- name: Restore Nix store
|
- name: Restore Nix store
|
||||||
uses: nix-community/cache-nix-action@v5
|
uses: nix-community/cache-nix-action@v5
|
||||||
with:
|
with:
|
||||||
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
|
primary-key: nix-small-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
|
||||||
restore-prefixes-first-match: nix-${{ runner.os }}-
|
restore-prefixes-first-match: nix-small-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Run tests
|
- name: Build for test
|
||||||
run: |
|
id: build-test
|
||||||
nix --print-build-logs --experimental-features 'nix-command flakes' flake check --all-systems
|
run: >-
|
||||||
nix build --out-link "result" --print-out-paths --print-build-logs .#checks.x86_64-linux.nixos-tests
|
export FORTIFY_REV="$(git rev-parse --short HEAD)" &&
|
||||||
|
sed -i.old 's/version = /version = "0.0.0-'$FORTIFY_REV'"; # version = /' package.nix &&
|
||||||
|
nix build --print-out-paths --print-build-logs .#dist &&
|
||||||
|
mv package.nix.old package.nix &&
|
||||||
|
echo "rev=$FORTIFY_REV" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload test output
|
- name: Upload test build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: "result"
|
name: "fortify-${{ steps.build-test.outputs.rev }}"
|
||||||
path: result/*
|
path: result/*
|
||||||
retention-days: 1
|
retention-days: 1
|
@ -1,53 +1,52 @@
|
|||||||
name: Create distribution
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Create release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: node:16-bookworm-slim
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get dependencies
|
|
||||||
run: >-
|
|
||||||
echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list.d/backports.list &&
|
|
||||||
apt-get update &&
|
|
||||||
apt-get install -y
|
|
||||||
acl
|
|
||||||
git
|
|
||||||
gcc
|
|
||||||
pkg-config
|
|
||||||
libwayland-dev
|
|
||||||
wayland-protocols/bookworm-backports
|
|
||||||
libxcb1-dev
|
|
||||||
libacl1-dev
|
|
||||||
if: ${{ runner.os == 'Linux' }}
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup go
|
- name: Setup go
|
||||||
uses: https://github.com/actions/setup-go@v5
|
uses: https://github.com/actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.23.0'
|
go-version: '>=1.23.0'
|
||||||
|
|
||||||
- name: Go generate
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
|
||||||
|
with:
|
||||||
|
# explicitly enable sandbox
|
||||||
|
install_options: --daemon
|
||||||
|
extra_nix_config: |
|
||||||
|
sandbox = true
|
||||||
|
system-features = nixos-test benchmark big-parallel kvm
|
||||||
|
enable_kvm: true
|
||||||
|
|
||||||
|
- name: Ensure environment
|
||||||
run: >-
|
run: >-
|
||||||
go generate ./...
|
apt-get update && apt-get install -y sqlite3
|
||||||
|
if: ${{ runner.os == 'Linux' }}
|
||||||
|
|
||||||
|
- name: Restore Nix store
|
||||||
|
uses: nix-community/cache-nix-action@v5
|
||||||
|
with:
|
||||||
|
primary-key: nix-small-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
|
||||||
|
restore-prefixes-first-match: nix-small-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Build for release
|
- name: Build for release
|
||||||
run: FORTIFY_VERSION='${{ github.ref_name }}' ./dist/release.sh
|
id: build-test
|
||||||
|
run: nix build --print-out-paths --print-build-logs .#dist
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
id: use-go-action
|
id: use-go-action
|
||||||
uses: https://gitea.com/actions/release-action@main
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
dist/fortify-**
|
result/fortify-**
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||||
|
@ -1,62 +1,46 @@
|
|||||||
name: Tests
|
name: Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
tests:
|
||||||
name: Go tests
|
name: Run NixOS test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: node:16-bookworm-slim
|
|
||||||
steps:
|
steps:
|
||||||
- name: Enable backports
|
- name: Checkout
|
||||||
run: >-
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list.d/backports.list
|
|
||||||
if: ${{ runner.os == 'Linux' }}
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
|
||||||
|
with:
|
||||||
|
# explicitly enable sandbox
|
||||||
|
install_options: --daemon
|
||||||
|
extra_nix_config: |
|
||||||
|
sandbox = true
|
||||||
|
system-features = nixos-test benchmark big-parallel kvm
|
||||||
|
enable_kvm: true
|
||||||
|
|
||||||
- name: Ensure environment
|
- name: Ensure environment
|
||||||
run: >-
|
run: >-
|
||||||
apt-get update && apt-get install -y curl wget sudo libxml2
|
apt-get update && apt-get install -y sqlite3
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Restore Nix store
|
||||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
uses: nix-community/cache-nix-action@v5
|
||||||
with:
|
with:
|
||||||
packages: acl git gcc pkg-config libwayland-dev wayland-protocols/bookworm-backports libxcb1-dev libacl1-dev
|
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
|
||||||
version: 1.0
|
restore-prefixes-first-match: nix-${{ runner.os }}-
|
||||||
#execute_install_scripts: true
|
|
||||||
if: ${{ runner.os == 'Linux' }}
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup go
|
|
||||||
uses: https://github.com/actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version: '>=1.23.0'
|
|
||||||
|
|
||||||
- name: Go generate
|
|
||||||
run: >-
|
|
||||||
go generate ./...
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: >-
|
run: |
|
||||||
go test ./...
|
nix --print-build-logs --experimental-features 'nix-command flakes' flake check --all-systems
|
||||||
|
nix build --out-link "result" --print-out-paths --print-build-logs .#checks.x86_64-linux.nixos-tests
|
||||||
|
|
||||||
- name: Build for test
|
- name: Upload test output
|
||||||
id: build-test
|
|
||||||
run: >-
|
|
||||||
FORTIFY_VERSION="$(git rev-parse --short HEAD)"
|
|
||||||
bash -c './dist/release.sh &&
|
|
||||||
echo "rev=$FORTIFY_VERSION" >> $GITHUB_OUTPUT'
|
|
||||||
|
|
||||||
- name: Upload test build
|
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: "fortify-${{ steps.build-test.outputs.rev }}"
|
name: "result"
|
||||||
path: dist/fortify-*
|
path: result/*
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
2
acl/c.go
2
acl/c.go
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo linux pkg-config: libacl
|
#cgo linux pkg-config: --static libacl
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/acl.h>
|
#include <sys/acl.h>
|
||||||
|
3
dist/release.sh
vendored
3
dist/release.sh
vendored
@ -8,7 +8,8 @@ mkdir -p "${out}"
|
|||||||
cp -v "README.md" "dist/fsurc.default" "dist/install.sh" "${out}"
|
cp -v "README.md" "dist/fsurc.default" "dist/install.sh" "${out}"
|
||||||
cp -rv "comp" "${out}"
|
cp -rv "comp" "${out}"
|
||||||
|
|
||||||
go build -trimpath -v -o "${out}/bin/" -ldflags "-s -w
|
go generate ./...
|
||||||
|
go build -trimpath -v -o "${out}/bin/" -ldflags "-s -w -buildid= -extldflags '-static'
|
||||||
-X git.gensokyo.uk/security/fortify/internal.Version=${VERSION}
|
-X git.gensokyo.uk/security/fortify/internal.Version=${VERSION}
|
||||||
-X git.gensokyo.uk/security/fortify/internal.Fortify=/usr/bin/fortify
|
-X git.gensokyo.uk/security/fortify/internal.Fortify=/usr/bin/fortify
|
||||||
-X git.gensokyo.uk/security/fortify/internal.Fsu=/usr/bin/fsu
|
-X git.gensokyo.uk/security/fortify/internal.Fsu=/usr/bin/fsu
|
||||||
|
158
flake.nix
158
flake.nix
@ -95,72 +95,114 @@
|
|||||||
packages = forAllSystems (
|
packages = forAllSystems (
|
||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
|
inherit (self.packages.${system}) fortify;
|
||||||
pkgs = nixpkgsFor.${system};
|
pkgs = nixpkgsFor.${system};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
default = self.packages.${system}.fortify;
|
default = self.packages.${system}.fortify;
|
||||||
|
|
||||||
fortify = pkgs.callPackage ./package.nix { };
|
fortify = pkgs.callPackage ./package.nix { };
|
||||||
|
|
||||||
|
dist =
|
||||||
|
pkgs.runCommand "${fortify.name}-dist" { inherit (self.devShells.${system}.default) buildInputs; }
|
||||||
|
''
|
||||||
|
# go requires XDG_CACHE_HOME for the build cache
|
||||||
|
export XDG_CACHE_HOME="$(mktemp -d)"
|
||||||
|
|
||||||
|
# get a different workdir as go does not like /build
|
||||||
|
cd $(mktemp -d) && cp -r ${fortify.src}/. . && chmod -R +w .
|
||||||
|
|
||||||
|
export FORTIFY_VERSION="v${fortify.version}"
|
||||||
|
./dist/release.sh && mkdir $out && cp -v "dist/fortify-$FORTIFY_VERSION.tar.gz"* $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
fhs = pkgs.buildFHSEnv {
|
||||||
|
pname = "fortify-fhs";
|
||||||
|
inherit (fortify) version;
|
||||||
|
targetPkgs =
|
||||||
|
pkgs:
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
|
go
|
||||||
|
gcc
|
||||||
|
pkg-config
|
||||||
|
wayland-scanner
|
||||||
|
]
|
||||||
|
++ (
|
||||||
|
with pkgs.pkgsStatic;
|
||||||
|
[
|
||||||
|
musl
|
||||||
|
libffi
|
||||||
|
acl
|
||||||
|
wayland
|
||||||
|
wayland-protocols
|
||||||
|
]
|
||||||
|
++ (with xorg; [
|
||||||
|
libxcb
|
||||||
|
libXau
|
||||||
|
libXdmcp
|
||||||
|
|
||||||
|
xorgproto
|
||||||
|
])
|
||||||
|
);
|
||||||
|
extraOutputsToInstall = [ "dev" ];
|
||||||
|
profile = ''
|
||||||
|
export PKG_CONFIG_PATH="/usr/share/pkgconfig:$PKG_CONFIG_PATH"
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
devShells = forAllSystems (system: {
|
devShells = forAllSystems (
|
||||||
default = nixpkgsFor.${system}.mkShell {
|
system:
|
||||||
buildInputs = with nixpkgsFor.${system}; self.packages.${system}.fortify.buildInputs;
|
let
|
||||||
};
|
inherit (self.packages.${system}) fortify fhs;
|
||||||
|
pkgs = nixpkgsFor.${system};
|
||||||
fhs = nixpkgsFor.${system}.buildFHSEnv {
|
in
|
||||||
pname = "fortify-fhs";
|
{
|
||||||
inherit (self.packages.${system}.fortify) version;
|
default = pkgs.mkShell {
|
||||||
targetPkgs =
|
buildInputs =
|
||||||
pkgs: with pkgs; [
|
with pkgs;
|
||||||
go
|
[
|
||||||
gcc
|
go
|
||||||
pkg-config
|
gcc
|
||||||
acl
|
]
|
||||||
wayland
|
++ fortify.buildInputs
|
||||||
wayland-scanner
|
++ fortify.nativeBuildInputs;
|
||||||
wayland-protocols
|
|
||||||
xorg.libxcb
|
|
||||||
];
|
|
||||||
extraOutputsToInstall = [ "dev" ];
|
|
||||||
profile = ''
|
|
||||||
export PKG_CONFIG_PATH="/usr/share/pkgconfig:$PKG_CONFIG_PATH"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
withPackage = nixpkgsFor.${system}.mkShell {
|
|
||||||
buildInputs =
|
|
||||||
with nixpkgsFor.${system};
|
|
||||||
self.packages.${system}.fortify.buildInputs ++ [ self.packages.${system}.fortify ];
|
|
||||||
};
|
|
||||||
|
|
||||||
generateDoc =
|
|
||||||
let
|
|
||||||
pkgs = nixpkgsFor.${system};
|
|
||||||
inherit (pkgs) lib;
|
|
||||||
|
|
||||||
doc =
|
|
||||||
let
|
|
||||||
eval = lib.evalModules {
|
|
||||||
specialArgs = {
|
|
||||||
inherit pkgs;
|
|
||||||
};
|
|
||||||
modules = [ ./options.nix ];
|
|
||||||
};
|
|
||||||
cleanEval = lib.filterAttrsRecursive (n: _: n != "_module") eval;
|
|
||||||
in
|
|
||||||
pkgs.nixosOptionsDoc { inherit (cleanEval) options; };
|
|
||||||
docText = pkgs.runCommand "fortify-module-docs.md" { } ''
|
|
||||||
cat ${doc.optionsCommonMark} > $out
|
|
||||||
sed -i '/*Declared by:*/,+1 d' $out
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
nixpkgsFor.${system}.mkShell {
|
|
||||||
shellHook = ''
|
|
||||||
exec cat ${docText} > options.md
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
});
|
|
||||||
|
fhs = fhs.env;
|
||||||
|
|
||||||
|
withPackage = nixpkgsFor.${system}.mkShell {
|
||||||
|
buildInputs = [ self.packages.${system}.fortify ] ++ self.devShells.${system}.default.buildInputs;
|
||||||
|
};
|
||||||
|
|
||||||
|
generateDoc =
|
||||||
|
let
|
||||||
|
pkgs = nixpkgsFor.${system};
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
|
||||||
|
doc =
|
||||||
|
let
|
||||||
|
eval = lib.evalModules {
|
||||||
|
specialArgs = {
|
||||||
|
inherit pkgs;
|
||||||
|
};
|
||||||
|
modules = [ ./options.nix ];
|
||||||
|
};
|
||||||
|
cleanEval = lib.filterAttrsRecursive (n: _: n != "_module") eval;
|
||||||
|
in
|
||||||
|
pkgs.nixosOptionsDoc { inherit (cleanEval) options; };
|
||||||
|
docText = pkgs.runCommand "fortify-module-docs.md" { } ''
|
||||||
|
cat ${doc.optionsCommonMark} > $out
|
||||||
|
sed -i '/*Declared by:*/,+1 d' $out
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
nixpkgsFor.${system}.mkShell {
|
||||||
|
shellHook = ''
|
||||||
|
exec cat ${docText} > options.md
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
45
package.nix
45
package.nix
@ -1,15 +1,11 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildGoModule,
|
buildGoModule,
|
||||||
makeBinaryWrapper,
|
|
||||||
xdg-dbus-proxy,
|
xdg-dbus-proxy,
|
||||||
bubblewrap,
|
bubblewrap,
|
||||||
|
pkgsStatic,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
acl,
|
|
||||||
wayland,
|
|
||||||
wayland-scanner,
|
wayland-scanner,
|
||||||
wayland-protocols,
|
|
||||||
xorg,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
@ -27,19 +23,13 @@ buildGoModule rec {
|
|||||||
lib.attrsets.foldlAttrs
|
lib.attrsets.foldlAttrs
|
||||||
(
|
(
|
||||||
ldflags: name: value:
|
ldflags: name: value:
|
||||||
ldflags
|
ldflags ++ [ "-X git.gensokyo.uk/security/fortify/internal.${name}=${value}" ]
|
||||||
++ [
|
|
||||||
"-X"
|
|
||||||
"git.gensokyo.uk/security/fortify/internal.${name}=${value}"
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
[
|
[
|
||||||
"-s"
|
"-s -w"
|
||||||
"-w"
|
"-extldflags '-static'"
|
||||||
"-X"
|
"-X main.Fmain=${placeholder "out"}/libexec/fortify"
|
||||||
"main.Fmain=${placeholder "out"}/libexec/fortify"
|
"-X main.Fshim=${placeholder "out"}/libexec/fshim"
|
||||||
"-X"
|
|
||||||
"main.Fshim=${placeholder "out"}/libexec/fshim"
|
|
||||||
]
|
]
|
||||||
{
|
{
|
||||||
Version = "v${version}";
|
Version = "v${version}";
|
||||||
@ -51,17 +41,26 @@ buildGoModule rec {
|
|||||||
# nix build environment does not allow acls
|
# nix build environment does not allow acls
|
||||||
GO_TEST_SKIP_ACL = 1;
|
GO_TEST_SKIP_ACL = 1;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
acl
|
# cannot find a cleaner way to do this
|
||||||
wayland
|
with pkgsStatic;
|
||||||
wayland-protocols
|
[
|
||||||
xorg.libxcb
|
musl
|
||||||
];
|
libffi
|
||||||
|
acl
|
||||||
|
wayland
|
||||||
|
wayland-protocols
|
||||||
|
]
|
||||||
|
++ (with xorg; [
|
||||||
|
libxcb
|
||||||
|
libXau
|
||||||
|
libXdmcp
|
||||||
|
]);
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
wayland-scanner
|
wayland-scanner
|
||||||
makeBinaryWrapper
|
pkgsStatic.makeBinaryWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
2
test.nix
2
test.nix
@ -51,7 +51,7 @@ nixosTest {
|
|||||||
mako
|
mako
|
||||||
|
|
||||||
# For go tests:
|
# For go tests:
|
||||||
self.devShells.${system}.fhs
|
self.packages.${system}.fhs
|
||||||
];
|
];
|
||||||
|
|
||||||
variables = {
|
variables = {
|
||||||
|
3
wl/c.go
3
wl/c.go
@ -4,12 +4,13 @@ package wl
|
|||||||
//go:generate sh -c "wayland-scanner private-code `pkg-config --variable=datarootdir wayland-protocols`/wayland-protocols/staging/security-context/security-context-v1.xml security-context-v1-protocol.c"
|
//go:generate sh -c "wayland-scanner private-code `pkg-config --variable=datarootdir wayland-protocols`/wayland-protocols/staging/security-context/security-context-v1.xml security-context-v1-protocol.c"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo linux pkg-config: wayland-client
|
#cgo linux pkg-config: --static wayland-client
|
||||||
#cgo freebsd openbsd LDFLAGS: -lwayland-client
|
#cgo freebsd openbsd LDFLAGS: -lwayland-client
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user