You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3123 lines
137 KiB

Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
Better logging (#6038) (#6095) * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
5 years ago
Add single sign-on support via SSPI on Windows (#8463) * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
4 years ago
  1. // mkerrors.sh -Wall -Werror -static -I/tmp/include -m32
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build 386,linux
  4. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  5. // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
  6. package unix
  7. import "syscall"
  8. const (
  9. AAFS_MAGIC = 0x5a3c69f0
  10. ADFS_SUPER_MAGIC = 0xadf5
  11. AFFS_SUPER_MAGIC = 0xadff
  12. AFS_FS_MAGIC = 0x6b414653
  13. AFS_SUPER_MAGIC = 0x5346414f
  14. AF_ALG = 0x26
  15. AF_APPLETALK = 0x5
  16. AF_ASH = 0x12
  17. AF_ATMPVC = 0x8
  18. AF_ATMSVC = 0x14
  19. AF_AX25 = 0x3
  20. AF_BLUETOOTH = 0x1f
  21. AF_BRIDGE = 0x7
  22. AF_CAIF = 0x25
  23. AF_CAN = 0x1d
  24. AF_DECnet = 0xc
  25. AF_ECONET = 0x13
  26. AF_FILE = 0x1
  27. AF_IB = 0x1b
  28. AF_IEEE802154 = 0x24
  29. AF_INET = 0x2
  30. AF_INET6 = 0xa
  31. AF_IPX = 0x4
  32. AF_IRDA = 0x17
  33. AF_ISDN = 0x22
  34. AF_IUCV = 0x20
  35. AF_KCM = 0x29
  36. AF_KEY = 0xf
  37. AF_LLC = 0x1a
  38. AF_LOCAL = 0x1
  39. AF_MAX = 0x2d
  40. AF_MPLS = 0x1c
  41. AF_NETBEUI = 0xd
  42. AF_NETLINK = 0x10
  43. AF_NETROM = 0x6
  44. AF_NFC = 0x27
  45. AF_PACKET = 0x11
  46. AF_PHONET = 0x23
  47. AF_PPPOX = 0x18
  48. AF_QIPCRTR = 0x2a
  49. AF_RDS = 0x15
  50. AF_ROSE = 0xb
  51. AF_ROUTE = 0x10
  52. AF_RXRPC = 0x21
  53. AF_SECURITY = 0xe
  54. AF_SMC = 0x2b
  55. AF_SNA = 0x16
  56. AF_TIPC = 0x1e
  57. AF_UNIX = 0x1
  58. AF_UNSPEC = 0x0
  59. AF_VSOCK = 0x28
  60. AF_WANPIPE = 0x19
  61. AF_X25 = 0x9
  62. AF_XDP = 0x2c
  63. ALG_OP_DECRYPT = 0x0
  64. ALG_OP_ENCRYPT = 0x1
  65. ALG_SET_AEAD_ASSOCLEN = 0x4
  66. ALG_SET_AEAD_AUTHSIZE = 0x5
  67. ALG_SET_IV = 0x2
  68. ALG_SET_KEY = 0x1
  69. ALG_SET_OP = 0x3
  70. ANON_INODE_FS_MAGIC = 0x9041934
  71. ARPHRD_6LOWPAN = 0x339
  72. ARPHRD_ADAPT = 0x108
  73. ARPHRD_APPLETLK = 0x8
  74. ARPHRD_ARCNET = 0x7
  75. ARPHRD_ASH = 0x30d
  76. ARPHRD_ATM = 0x13
  77. ARPHRD_AX25 = 0x3
  78. ARPHRD_BIF = 0x307
  79. ARPHRD_CAIF = 0x336
  80. ARPHRD_CAN = 0x118
  81. ARPHRD_CHAOS = 0x5
  82. ARPHRD_CISCO = 0x201
  83. ARPHRD_CSLIP = 0x101
  84. ARPHRD_CSLIP6 = 0x103
  85. ARPHRD_DDCMP = 0x205
  86. ARPHRD_DLCI = 0xf
  87. ARPHRD_ECONET = 0x30e
  88. ARPHRD_EETHER = 0x2
  89. ARPHRD_ETHER = 0x1
  90. ARPHRD_EUI64 = 0x1b
  91. ARPHRD_FCAL = 0x311
  92. ARPHRD_FCFABRIC = 0x313
  93. ARPHRD_FCPL = 0x312
  94. ARPHRD_FCPP = 0x310
  95. ARPHRD_FDDI = 0x306
  96. ARPHRD_FRAD = 0x302
  97. ARPHRD_HDLC = 0x201
  98. ARPHRD_HIPPI = 0x30c
  99. ARPHRD_HWX25 = 0x110
  100. ARPHRD_IEEE1394 = 0x18
  101. ARPHRD_IEEE802 = 0x6
  102. ARPHRD_IEEE80211 = 0x321
  103. ARPHRD_IEEE80211_PRISM = 0x322
  104. ARPHRD_IEEE80211_RADIOTAP = 0x323
  105. ARPHRD_IEEE802154 = 0x324
  106. ARPHRD_IEEE802154_MONITOR = 0x325
  107. ARPHRD_IEEE802_TR = 0x320
  108. ARPHRD_INFINIBAND = 0x20
  109. ARPHRD_IP6GRE = 0x337
  110. ARPHRD_IPDDP = 0x309
  111. ARPHRD_IPGRE = 0x30a
  112. ARPHRD_IRDA = 0x30f
  113. ARPHRD_LAPB = 0x204
  114. ARPHRD_LOCALTLK = 0x305
  115. ARPHRD_LOOPBACK = 0x304
  116. ARPHRD_METRICOM = 0x17
  117. ARPHRD_NETLINK = 0x338
  118. ARPHRD_NETROM = 0x0
  119. ARPHRD_NONE = 0xfffe
  120. ARPHRD_PHONET = 0x334
  121. ARPHRD_PHONET_PIPE = 0x335
  122. ARPHRD_PIMREG = 0x30b
  123. ARPHRD_PPP = 0x200
  124. ARPHRD_PRONET = 0x4
  125. ARPHRD_RAWHDLC = 0x206
  126. ARPHRD_RAWIP = 0x207
  127. ARPHRD_ROSE = 0x10e
  128. ARPHRD_RSRVD = 0x104
  129. ARPHRD_SIT = 0x308
  130. ARPHRD_SKIP = 0x303
  131. ARPHRD_SLIP = 0x100
  132. ARPHRD_SLIP6 = 0x102
  133. ARPHRD_TUNNEL = 0x300
  134. ARPHRD_TUNNEL6 = 0x301
  135. ARPHRD_VOID = 0xffff
  136. ARPHRD_VSOCKMON = 0x33a
  137. ARPHRD_X25 = 0x10f
  138. AUTOFS_SUPER_MAGIC = 0x187
  139. B0 = 0x0
  140. B1000000 = 0x1008
  141. B110 = 0x3
  142. B115200 = 0x1002
  143. B1152000 = 0x1009
  144. B1200 = 0x9
  145. B134 = 0x4
  146. B150 = 0x5
  147. B1500000 = 0x100a
  148. B1800 = 0xa
  149. B19200 = 0xe
  150. B200 = 0x6
  151. B2000000 = 0x100b
  152. B230400 = 0x1003
  153. B2400 = 0xb
  154. B2500000 = 0x100c
  155. B300 = 0x7
  156. B3000000 = 0x100d
  157. B3500000 = 0x100e
  158. B38400 = 0xf
  159. B4000000 = 0x100f
  160. B460800 = 0x1004
  161. B4800 = 0xc
  162. B50 = 0x1
  163. B500000 = 0x1005
  164. B57600 = 0x1001
  165. B576000 = 0x1006
  166. B600 = 0x8
  167. B75 = 0x2
  168. B921600 = 0x1007
  169. B9600 = 0xd
  170. BALLOON_KVM_MAGIC = 0x13661366
  171. BDEVFS_MAGIC = 0x62646576
  172. BINDERFS_SUPER_MAGIC = 0x6c6f6f70
  173. BINFMTFS_MAGIC = 0x42494e4d
  174. BLKBSZGET = 0x80041270
  175. BLKBSZSET = 0x40041271
  176. BLKFLSBUF = 0x1261
  177. BLKFRAGET = 0x1265
  178. BLKFRASET = 0x1264
  179. BLKGETSIZE = 0x1260
  180. BLKGETSIZE64 = 0x80041272
  181. BLKPBSZGET = 0x127b
  182. BLKRAGET = 0x1263
  183. BLKRASET = 0x1262
  184. BLKROGET = 0x125e
  185. BLKROSET = 0x125d
  186. BLKRRPART = 0x125f
  187. BLKSECTGET = 0x1267
  188. BLKSECTSET = 0x1266
  189. BLKSSZGET = 0x1268
  190. BOTHER = 0x1000
  191. BPF_A = 0x10
  192. BPF_ABS = 0x20
  193. BPF_ADD = 0x0
  194. BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff
  195. BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38
  196. BPF_ALU = 0x4
  197. BPF_ALU64 = 0x7
  198. BPF_AND = 0x50
  199. BPF_ANY = 0x0
  200. BPF_ARSH = 0xc0
  201. BPF_B = 0x10
  202. BPF_BUILD_ID_SIZE = 0x14
  203. BPF_CALL = 0x80
  204. BPF_DEVCG_ACC_MKNOD = 0x1
  205. BPF_DEVCG_ACC_READ = 0x2
  206. BPF_DEVCG_ACC_WRITE = 0x4
  207. BPF_DEVCG_DEV_BLOCK = 0x1
  208. BPF_DEVCG_DEV_CHAR = 0x2
  209. BPF_DIV = 0x30
  210. BPF_DW = 0x18
  211. BPF_END = 0xd0
  212. BPF_EXIST = 0x2
  213. BPF_EXIT = 0x90
  214. BPF_FROM_BE = 0x8
  215. BPF_FROM_LE = 0x0
  216. BPF_FS_MAGIC = 0xcafe4a11
  217. BPF_F_ADJ_ROOM_ENCAP_L3_IPV4 = 0x2
  218. BPF_F_ADJ_ROOM_ENCAP_L3_IPV6 = 0x4
  219. BPF_F_ADJ_ROOM_ENCAP_L4_GRE = 0x8
  220. BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10
  221. BPF_F_ADJ_ROOM_FIXED_GSO = 0x1
  222. BPF_F_ALLOW_MULTI = 0x2
  223. BPF_F_ALLOW_OVERRIDE = 0x1
  224. BPF_F_ANY_ALIGNMENT = 0x2
  225. BPF_F_CTXLEN_MASK = 0xfffff00000000
  226. BPF_F_CURRENT_CPU = 0xffffffff
  227. BPF_F_CURRENT_NETNS = -0x1
  228. BPF_F_DONT_FRAGMENT = 0x4
  229. BPF_F_FAST_STACK_CMP = 0x200
  230. BPF_F_HDR_FIELD_MASK = 0xf
  231. BPF_F_INDEX_MASK = 0xffffffff
  232. BPF_F_INGRESS = 0x1
  233. BPF_F_INVALIDATE_HASH = 0x2
  234. BPF_F_LOCK = 0x4
  235. BPF_F_MARK_ENFORCE = 0x40
  236. BPF_F_MARK_MANGLED_0 = 0x20
  237. BPF_F_NO_COMMON_LRU = 0x2
  238. BPF_F_NO_PREALLOC = 0x1
  239. BPF_F_NUMA_NODE = 0x4
  240. BPF_F_PSEUDO_HDR = 0x10
  241. BPF_F_QUERY_EFFECTIVE = 0x1
  242. BPF_F_RDONLY = 0x8
  243. BPF_F_RDONLY_PROG = 0x80
  244. BPF_F_RECOMPUTE_CSUM = 0x1
  245. BPF_F_REUSE_STACKID = 0x400
  246. BPF_F_SEQ_NUMBER = 0x8
  247. BPF_F_SKIP_FIELD_MASK = 0xff
  248. BPF_F_STACK_BUILD_ID = 0x20
  249. BPF_F_STRICT_ALIGNMENT = 0x1
  250. BPF_F_SYSCTL_BASE_NAME = 0x1
  251. BPF_F_TEST_RND_HI32 = 0x4
  252. BPF_F_TUNINFO_IPV6 = 0x1
  253. BPF_F_USER_BUILD_ID = 0x800
  254. BPF_F_USER_STACK = 0x100
  255. BPF_F_WRONLY = 0x10
  256. BPF_F_WRONLY_PROG = 0x100
  257. BPF_F_ZERO_CSUM_TX = 0x2
  258. BPF_F_ZERO_SEED = 0x40
  259. BPF_H = 0x8
  260. BPF_IMM = 0x0
  261. BPF_IND = 0x40
  262. BPF_JA = 0x0
  263. BPF_JEQ = 0x10
  264. BPF_JGE = 0x30
  265. BPF_JGT = 0x20
  266. BPF_JLE = 0xb0
  267. BPF_JLT = 0xa0
  268. BPF_JMP = 0x5
  269. BPF_JMP32 = 0x6
  270. BPF_JNE = 0x50
  271. BPF_JSET = 0x40
  272. BPF_JSGE = 0x70
  273. BPF_JSGT = 0x60
  274. BPF_JSLE = 0xd0
  275. BPF_JSLT = 0xc0
  276. BPF_K = 0x0
  277. BPF_LD = 0x0
  278. BPF_LDX = 0x1
  279. BPF_LEN = 0x80
  280. BPF_LL_OFF = -0x200000
  281. BPF_LSH = 0x60
  282. BPF_MAJOR_VERSION = 0x1
  283. BPF_MAXINSNS = 0x1000
  284. BPF_MEM = 0x60
  285. BPF_MEMWORDS = 0x10
  286. BPF_MINOR_VERSION = 0x1
  287. BPF_MISC = 0x7
  288. BPF_MOD = 0x90
  289. BPF_MOV = 0xb0
  290. BPF_MSH = 0xa0
  291. BPF_MUL = 0x20
  292. BPF_NEG = 0x80
  293. BPF_NET_OFF = -0x100000
  294. BPF_NOEXIST = 0x1
  295. BPF_OBJ_NAME_LEN = 0x10
  296. BPF_OR = 0x40
  297. BPF_PSEUDO_CALL = 0x1
  298. BPF_PSEUDO_MAP_FD = 0x1
  299. BPF_PSEUDO_MAP_VALUE = 0x2
  300. BPF_RET = 0x6
  301. BPF_RSH = 0x70
  302. BPF_SK_STORAGE_GET_F_CREATE = 0x1
  303. BPF_SOCK_OPS_ALL_CB_FLAGS = 0xf
  304. BPF_SOCK_OPS_RETRANS_CB_FLAG = 0x2
  305. BPF_SOCK_OPS_RTO_CB_FLAG = 0x1
  306. BPF_SOCK_OPS_RTT_CB_FLAG = 0x8
  307. BPF_SOCK_OPS_STATE_CB_FLAG = 0x4
  308. BPF_ST = 0x2
  309. BPF_STX = 0x3
  310. BPF_SUB = 0x10
  311. BPF_TAG_SIZE = 0x8
  312. BPF_TAX = 0x0
  313. BPF_TO_BE = 0x8
  314. BPF_TO_LE = 0x0
  315. BPF_TXA = 0x80
  316. BPF_W = 0x0
  317. BPF_X = 0x8
  318. BPF_XADD = 0xc0
  319. BPF_XOR = 0xa0
  320. BRKINT = 0x2
  321. BS0 = 0x0
  322. BS1 = 0x2000
  323. BSDLY = 0x2000
  324. BTRFS_SUPER_MAGIC = 0x9123683e
  325. BTRFS_TEST_MAGIC = 0x73727279
  326. CAN_BCM = 0x2
  327. CAN_EFF_FLAG = 0x80000000
  328. CAN_EFF_ID_BITS = 0x1d
  329. CAN_EFF_MASK = 0x1fffffff
  330. CAN_ERR_FLAG = 0x20000000
  331. CAN_ERR_MASK = 0x1fffffff
  332. CAN_INV_FILTER = 0x20000000
  333. CAN_ISOTP = 0x6
  334. CAN_MAX_DLC = 0x8
  335. CAN_MAX_DLEN = 0x8
  336. CAN_MCNET = 0x5
  337. CAN_MTU = 0x10
  338. CAN_NPROTO = 0x7
  339. CAN_RAW = 0x1
  340. CAN_RAW_FILTER_MAX = 0x200
  341. CAN_RTR_FLAG = 0x40000000
  342. CAN_SFF_ID_BITS = 0xb
  343. CAN_SFF_MASK = 0x7ff
  344. CAN_TP16 = 0x3
  345. CAN_TP20 = 0x4
  346. CAP_AUDIT_CONTROL = 0x1e
  347. CAP_AUDIT_READ = 0x25
  348. CAP_AUDIT_WRITE = 0x1d
  349. CAP_BLOCK_SUSPEND = 0x24
  350. CAP_CHOWN = 0x0
  351. CAP_DAC_OVERRIDE = 0x1
  352. CAP_DAC_READ_SEARCH = 0x2
  353. CAP_FOWNER = 0x3
  354. CAP_FSETID = 0x4
  355. CAP_IPC_LOCK = 0xe
  356. CAP_IPC_OWNER = 0xf
  357. CAP_KILL = 0x5
  358. CAP_LAST_CAP = 0x25
  359. CAP_LEASE = 0x1c
  360. CAP_LINUX_IMMUTABLE = 0x9
  361. CAP_MAC_ADMIN = 0x21
  362. CAP_MAC_OVERRIDE = 0x20
  363. CAP_MKNOD = 0x1b
  364. CAP_NET_ADMIN = 0xc
  365. CAP_NET_BIND_SERVICE = 0xa
  366. CAP_NET_BROADCAST = 0xb
  367. CAP_NET_RAW = 0xd
  368. CAP_SETFCAP = 0x1f
  369. CAP_SETGID = 0x6
  370. CAP_SETPCAP = 0x8
  371. CAP_SETUID = 0x7
  372. CAP_SYSLOG = 0x22
  373. CAP_SYS_ADMIN = 0x15
  374. CAP_SYS_BOOT = 0x16
  375. CAP_SYS_CHROOT = 0x12
  376. CAP_SYS_MODULE = 0x10
  377. CAP_SYS_NICE = 0x17
  378. CAP_SYS_PACCT = 0x14
  379. CAP_SYS_PTRACE = 0x13
  380. CAP_SYS_RAWIO = 0x11
  381. CAP_SYS_RESOURCE = 0x18
  382. CAP_SYS_TIME = 0x19
  383. CAP_SYS_TTY_CONFIG = 0x1a
  384. CAP_WAKE_ALARM = 0x23
  385. CBAUD = 0x100f
  386. CBAUDEX = 0x1000
  387. CFLUSH = 0xf
  388. CGROUP2_SUPER_MAGIC = 0x63677270
  389. CGROUP_SUPER_MAGIC = 0x27e0eb
  390. CIBAUD = 0x100f0000
  391. CLOCAL = 0x800
  392. CLOCK_BOOTTIME = 0x7
  393. CLOCK_BOOTTIME_ALARM = 0x9
  394. CLOCK_DEFAULT = 0x0
  395. CLOCK_EXT = 0x1
  396. CLOCK_INT = 0x2
  397. CLOCK_MONOTONIC = 0x1
  398. CLOCK_MONOTONIC_COARSE = 0x6
  399. CLOCK_MONOTONIC_RAW = 0x4
  400. CLOCK_PROCESS_CPUTIME_ID = 0x2
  401. CLOCK_REALTIME = 0x0
  402. CLOCK_REALTIME_ALARM = 0x8
  403. CLOCK_REALTIME_COARSE = 0x5
  404. CLOCK_TAI = 0xb
  405. CLOCK_THREAD_CPUTIME_ID = 0x3
  406. CLOCK_TXFROMRX = 0x4
  407. CLOCK_TXINT = 0x3
  408. CLONE_CHILD_CLEARTID = 0x200000
  409. CLONE_CHILD_SETTID = 0x1000000
  410. CLONE_DETACHED = 0x400000
  411. CLONE_FILES = 0x400
  412. CLONE_FS = 0x200
  413. CLONE_IO = 0x80000000
  414. CLONE_NEWCGROUP = 0x2000000
  415. CLONE_NEWIPC = 0x8000000
  416. CLONE_NEWNET = 0x40000000
  417. CLONE_NEWNS = 0x20000
  418. CLONE_NEWPID = 0x20000000
  419. CLONE_NEWUSER = 0x10000000
  420. CLONE_NEWUTS = 0x4000000
  421. CLONE_PARENT = 0x8000
  422. CLONE_PARENT_SETTID = 0x100000
  423. CLONE_PIDFD = 0x1000
  424. CLONE_PTRACE = 0x2000
  425. CLONE_SETTLS = 0x80000
  426. CLONE_SIGHAND = 0x800
  427. CLONE_SYSVSEM = 0x40000
  428. CLONE_THREAD = 0x10000
  429. CLONE_UNTRACED = 0x800000
  430. CLONE_VFORK = 0x4000
  431. CLONE_VM = 0x100
  432. CMSPAR = 0x40000000
  433. CODA_SUPER_MAGIC = 0x73757245
  434. CR0 = 0x0
  435. CR1 = 0x200
  436. CR2 = 0x400
  437. CR3 = 0x600
  438. CRAMFS_MAGIC = 0x28cd3d45
  439. CRDLY = 0x600
  440. CREAD = 0x80
  441. CRTSCTS = 0x80000000
  442. CRYPTO_MAX_NAME = 0x40
  443. CRYPTO_MSG_MAX = 0x15
  444. CRYPTO_NR_MSGTYPES = 0x6
  445. CRYPTO_REPORT_MAXSIZE = 0x160
  446. CS5 = 0x0
  447. CS6 = 0x10
  448. CS7 = 0x20
  449. CS8 = 0x30
  450. CSIGNAL = 0xff
  451. CSIZE = 0x30
  452. CSTART = 0x11
  453. CSTATUS = 0x0
  454. CSTOP = 0x13
  455. CSTOPB = 0x40
  456. CSUSP = 0x1a
  457. DAXFS_MAGIC = 0x64646178
  458. DEBUGFS_MAGIC = 0x64626720
  459. DEVPTS_SUPER_MAGIC = 0x1cd1
  460. DMA_BUF_MAGIC = 0x444d4142
  461. DT_BLK = 0x6
  462. DT_CHR = 0x2
  463. DT_DIR = 0x4
  464. DT_FIFO = 0x1
  465. DT_LNK = 0xa
  466. DT_REG = 0x8
  467. DT_SOCK = 0xc
  468. DT_UNKNOWN = 0x0
  469. DT_WHT = 0xe
  470. ECHO = 0x8
  471. ECHOCTL = 0x200
  472. ECHOE = 0x10
  473. ECHOK = 0x20
  474. ECHOKE = 0x800
  475. ECHONL = 0x40
  476. ECHOPRT = 0x400
  477. ECRYPTFS_SUPER_MAGIC = 0xf15f
  478. EFD_CLOEXEC = 0x80000
  479. EFD_NONBLOCK = 0x800
  480. EFD_SEMAPHORE = 0x1
  481. EFIVARFS_MAGIC = 0xde5e81e4
  482. EFS_SUPER_MAGIC = 0x414a53
  483. ENCODING_DEFAULT = 0x0
  484. ENCODING_FM_MARK = 0x3
  485. ENCODING_FM_SPACE = 0x4
  486. ENCODING_MANCHESTER = 0x5
  487. ENCODING_NRZ = 0x1
  488. ENCODING_NRZI = 0x2
  489. EPOLLERR = 0x8
  490. EPOLLET = 0x80000000
  491. EPOLLEXCLUSIVE = 0x10000000
  492. EPOLLHUP = 0x10
  493. EPOLLIN = 0x1
  494. EPOLLMSG = 0x400
  495. EPOLLONESHOT = 0x40000000
  496. EPOLLOUT = 0x4
  497. EPOLLPRI = 0x2
  498. EPOLLRDBAND = 0x80
  499. EPOLLRDHUP = 0x2000
  500. EPOLLRDNORM = 0x40
  501. EPOLLWAKEUP = 0x20000000
  502. EPOLLWRBAND = 0x200
  503. EPOLLWRNORM = 0x100
  504. EPOLL_CLOEXEC = 0x80000
  505. EPOLL_CTL_ADD = 0x1
  506. EPOLL_CTL_DEL = 0x2
  507. EPOLL_CTL_MOD = 0x3
  508. ETH_P_1588 = 0x88f7
  509. ETH_P_8021AD = 0x88a8
  510. ETH_P_8021AH = 0x88e7
  511. ETH_P_8021Q = 0x8100
  512. ETH_P_80221 = 0x8917
  513. ETH_P_802_2 = 0x4
  514. ETH_P_802_3 = 0x1
  515. ETH_P_802_3_MIN = 0x600
  516. ETH_P_802_EX1 = 0x88b5
  517. ETH_P_AARP = 0x80f3
  518. ETH_P_AF_IUCV = 0xfbfb
  519. ETH_P_ALL = 0x3
  520. ETH_P_AOE = 0x88a2
  521. ETH_P_ARCNET = 0x1a
  522. ETH_P_ARP = 0x806
  523. ETH_P_ATALK = 0x809b
  524. ETH_P_ATMFATE = 0x8884
  525. ETH_P_ATMMPOA = 0x884c
  526. ETH_P_AX25 = 0x2
  527. ETH_P_BATMAN = 0x4305
  528. ETH_P_BPQ = 0x8ff
  529. ETH_P_CAIF = 0xf7
  530. ETH_P_CAN = 0xc
  531. ETH_P_CANFD = 0xd
  532. ETH_P_CONTROL = 0x16
  533. ETH_P_CUST = 0x6006
  534. ETH_P_DDCMP = 0x6
  535. ETH_P_DEC = 0x6000
  536. ETH_P_DIAG = 0x6005
  537. ETH_P_DNA_DL = 0x6001
  538. ETH_P_DNA_RC = 0x6002
  539. ETH_P_DNA_RT = 0x6003
  540. ETH_P_DSA = 0x1b
  541. ETH_P_DSA_8021Q = 0xdadb
  542. ETH_P_ECONET = 0x18
  543. ETH_P_EDSA = 0xdada
  544. ETH_P_ERSPAN = 0x88be
  545. ETH_P_ERSPAN2 = 0x22eb
  546. ETH_P_FCOE = 0x8906
  547. ETH_P_FIP = 0x8914
  548. ETH_P_HDLC = 0x19
  549. ETH_P_HSR = 0x892f
  550. ETH_P_IBOE = 0x8915
  551. ETH_P_IEEE802154 = 0xf6
  552. ETH_P_IEEEPUP = 0xa00
  553. ETH_P_IEEEPUPAT = 0xa01
  554. ETH_P_IFE = 0xed3e
  555. ETH_P_IP = 0x800
  556. ETH_P_IPV6 = 0x86dd
  557. ETH_P_IPX = 0x8137
  558. ETH_P_IRDA = 0x17
  559. ETH_P_LAT = 0x6004
  560. ETH_P_LINK_CTL = 0x886c
  561. ETH_P_LLDP = 0x88cc
  562. ETH_P_LOCALTALK = 0x9
  563. ETH_P_LOOP = 0x60
  564. ETH_P_LOOPBACK = 0x9000
  565. ETH_P_MACSEC = 0x88e5
  566. ETH_P_MAP = 0xf9
  567. ETH_P_MOBITEX = 0x15
  568. ETH_P_MPLS_MC = 0x8848
  569. ETH_P_MPLS_UC = 0x8847
  570. ETH_P_MVRP = 0x88f5
  571. ETH_P_NCSI = 0x88f8
  572. ETH_P_NSH = 0x894f
  573. ETH_P_PAE = 0x888e
  574. ETH_P_PAUSE = 0x8808
  575. ETH_P_PHONET = 0xf5
  576. ETH_P_PPPTALK = 0x10
  577. ETH_P_PPP_DISC = 0x8863
  578. ETH_P_PPP_MP = 0x8
  579. ETH_P_PPP_SES = 0x8864
  580. ETH_P_PREAUTH = 0x88c7
  581. ETH_P_PRP = 0x88fb
  582. ETH_P_PUP = 0x200
  583. ETH_P_PUPAT = 0x201
  584. ETH_P_QINQ1 = 0x9100
  585. ETH_P_QINQ2 = 0x9200
  586. ETH_P_QINQ3 = 0x9300
  587. ETH_P_RARP = 0x8035
  588. ETH_P_SCA = 0x6007
  589. ETH_P_SLOW = 0x8809
  590. ETH_P_SNAP = 0x5
  591. ETH_P_TDLS = 0x890d
  592. ETH_P_TEB = 0x6558
  593. ETH_P_TIPC = 0x88ca
  594. ETH_P_TRAILER = 0x1c
  595. ETH_P_TR_802_2 = 0x11
  596. ETH_P_TSN = 0x22f0
  597. ETH_P_WAN_PPP = 0x7
  598. ETH_P_WCCP = 0x883e
  599. ETH_P_X25 = 0x805
  600. ETH_P_XDSA = 0xf8
  601. EXABYTE_ENABLE_NEST = 0xf0
  602. EXT2_SUPER_MAGIC = 0xef53
  603. EXT3_SUPER_MAGIC = 0xef53
  604. EXT4_SUPER_MAGIC = 0xef53
  605. EXTA = 0xe
  606. EXTB = 0xf
  607. EXTPROC = 0x10000
  608. F2FS_SUPER_MAGIC = 0xf2f52010
  609. FALLOC_FL_COLLAPSE_RANGE = 0x8
  610. FALLOC_FL_INSERT_RANGE = 0x20
  611. FALLOC_FL_KEEP_SIZE = 0x1
  612. FALLOC_FL_NO_HIDE_STALE = 0x4
  613. FALLOC_FL_PUNCH_HOLE = 0x2
  614. FALLOC_FL_UNSHARE_RANGE = 0x40
  615. FALLOC_FL_ZERO_RANGE = 0x10
  616. FANOTIFY_METADATA_VERSION = 0x3
  617. FAN_ACCESS = 0x1
  618. FAN_ACCESS_PERM = 0x20000
  619. FAN_ALLOW = 0x1
  620. FAN_ALL_CLASS_BITS = 0xc
  621. FAN_ALL_EVENTS = 0x3b
  622. FAN_ALL_INIT_FLAGS = 0x3f
  623. FAN_ALL_MARK_FLAGS = 0xff
  624. FAN_ALL_OUTGOING_EVENTS = 0x3403b
  625. FAN_ALL_PERM_EVENTS = 0x30000
  626. FAN_ATTRIB = 0x4
  627. FAN_AUDIT = 0x10
  628. FAN_CLASS_CONTENT = 0x4
  629. FAN_CLASS_NOTIF = 0x0
  630. FAN_CLASS_PRE_CONTENT = 0x8
  631. FAN_CLOEXEC = 0x1
  632. FAN_CLOSE = 0x18
  633. FAN_CLOSE_NOWRITE = 0x10
  634. FAN_CLOSE_WRITE = 0x8
  635. FAN_CREATE = 0x100
  636. FAN_DELETE = 0x200
  637. FAN_DELETE_SELF = 0x400
  638. FAN_DENY = 0x2
  639. FAN_ENABLE_AUDIT = 0x40
  640. FAN_EVENT_INFO_TYPE_FID = 0x1
  641. FAN_EVENT_METADATA_LEN = 0x18
  642. FAN_EVENT_ON_CHILD = 0x8000000
  643. FAN_MARK_ADD = 0x1
  644. FAN_MARK_DONT_FOLLOW = 0x4
  645. FAN_MARK_FILESYSTEM = 0x100
  646. FAN_MARK_FLUSH = 0x80
  647. FAN_MARK_IGNORED_MASK = 0x20
  648. FAN_MARK_IGNORED_SURV_MODIFY = 0x40
  649. FAN_MARK_INODE = 0x0
  650. FAN_MARK_MOUNT = 0x10
  651. FAN_MARK_ONLYDIR = 0x8
  652. FAN_MARK_REMOVE = 0x2
  653. FAN_MODIFY = 0x2
  654. FAN_MOVE = 0xc0
  655. FAN_MOVED_FROM = 0x40
  656. FAN_MOVED_TO = 0x80
  657. FAN_MOVE_SELF = 0x800
  658. FAN_NOFD = -0x1
  659. FAN_NONBLOCK = 0x2
  660. FAN_ONDIR = 0x40000000
  661. FAN_OPEN = 0x20
  662. FAN_OPEN_EXEC = 0x1000
  663. FAN_OPEN_EXEC_PERM = 0x40000
  664. FAN_OPEN_PERM = 0x10000
  665. FAN_Q_OVERFLOW = 0x4000
  666. FAN_REPORT_FID = 0x200
  667. FAN_REPORT_TID = 0x100
  668. FAN_UNLIMITED_MARKS = 0x20
  669. FAN_UNLIMITED_QUEUE = 0x10
  670. FD_CLOEXEC = 0x1
  671. FD_SETSIZE = 0x400
  672. FF0 = 0x0
  673. FF1 = 0x8000
  674. FFDLY = 0x8000
  675. FLUSHO = 0x1000
  676. FP_XSTATE_MAGIC2 = 0x46505845
  677. FS_ENCRYPTION_MODE_ADIANTUM = 0x9
  678. FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
  679. FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
  680. FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
  681. FS_ENCRYPTION_MODE_AES_256_CTS = 0x4
  682. FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
  683. FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
  684. FS_ENCRYPTION_MODE_INVALID = 0x0
  685. FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
  686. FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
  687. FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
  688. FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
  689. FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
  690. FS_KEY_DESCRIPTOR_SIZE = 0x8
  691. FS_KEY_DESC_PREFIX = "fscrypt:"
  692. FS_KEY_DESC_PREFIX_SIZE = 0x8
  693. FS_MAX_KEY_SIZE = 0x40
  694. FS_POLICY_FLAGS_PAD_16 = 0x2
  695. FS_POLICY_FLAGS_PAD_32 = 0x3
  696. FS_POLICY_FLAGS_PAD_4 = 0x0
  697. FS_POLICY_FLAGS_PAD_8 = 0x1
  698. FS_POLICY_FLAGS_PAD_MASK = 0x3
  699. FS_POLICY_FLAGS_VALID = 0x7
  700. FUTEXFS_SUPER_MAGIC = 0xbad1dea
  701. F_ADD_SEALS = 0x409
  702. F_DUPFD = 0x0
  703. F_DUPFD_CLOEXEC = 0x406
  704. F_EXLCK = 0x4
  705. F_GETFD = 0x1
  706. F_GETFL = 0x3
  707. F_GETLEASE = 0x401
  708. F_GETLK = 0xc
  709. F_GETLK64 = 0xc
  710. F_GETOWN = 0x9
  711. F_GETOWN_EX = 0x10
  712. F_GETPIPE_SZ = 0x408
  713. F_GETSIG = 0xb
  714. F_GET_FILE_RW_HINT = 0x40d
  715. F_GET_RW_HINT = 0x40b
  716. F_GET_SEALS = 0x40a
  717. F_LOCK = 0x1
  718. F_NOTIFY = 0x402
  719. F_OFD_GETLK = 0x24
  720. F_OFD_SETLK = 0x25
  721. F_OFD_SETLKW = 0x26
  722. F_OK = 0x0
  723. F_RDLCK = 0x0
  724. F_SEAL_FUTURE_WRITE = 0x10
  725. F_SEAL_GROW = 0x4
  726. F_SEAL_SEAL = 0x1
  727. F_SEAL_SHRINK = 0x2
  728. F_SEAL_WRITE = 0x8
  729. F_SETFD = 0x2
  730. F_SETFL = 0x4
  731. F_SETLEASE = 0x400
  732. F_SETLK = 0xd
  733. F_SETLK64 = 0xd
  734. F_SETLKW = 0xe
  735. F_SETLKW64 = 0xe
  736. F_SETOWN = 0x8
  737. F_SETOWN_EX = 0xf
  738. F_SETPIPE_SZ = 0x407
  739. F_SETSIG = 0xa
  740. F_SET_FILE_RW_HINT = 0x40e
  741. F_SET_RW_HINT = 0x40c
  742. F_SHLCK = 0x8
  743. F_TEST = 0x3
  744. F_TLOCK = 0x2
  745. F_ULOCK = 0x0
  746. F_UNLCK = 0x2
  747. F_WRLCK = 0x1
  748. GENL_ADMIN_PERM = 0x1
  749. GENL_CMD_CAP_DO = 0x2
  750. GENL_CMD_CAP_DUMP = 0x4
  751. GENL_CMD_CAP_HASPOL = 0x8
  752. GENL_HDRLEN = 0x4
  753. GENL_ID_CTRL = 0x10
  754. GENL_ID_PMCRAID = 0x12
  755. GENL_ID_VFS_DQUOT = 0x11
  756. GENL_MAX_ID = 0x3ff
  757. GENL_MIN_ID = 0x10
  758. GENL_NAMSIZ = 0x10
  759. GENL_START_ALLOC = 0x13
  760. GENL_UNS_ADMIN_PERM = 0x10
  761. GRND_NONBLOCK = 0x1
  762. GRND_RANDOM = 0x2
  763. HDIO_DRIVE_CMD = 0x31f
  764. HDIO_DRIVE_CMD_AEB = 0x31e
  765. HDIO_DRIVE_CMD_HDR_SIZE = 0x4
  766. HDIO_DRIVE_HOB_HDR_SIZE = 0x8
  767. HDIO_DRIVE_RESET = 0x31c
  768. HDIO_DRIVE_TASK = 0x31e
  769. HDIO_DRIVE_TASKFILE = 0x31d
  770. HDIO_DRIVE_TASK_HDR_SIZE = 0x8
  771. HDIO_GETGEO = 0x301
  772. HDIO_GET_32BIT = 0x309
  773. HDIO_GET_ACOUSTIC = 0x30f
  774. HDIO_GET_ADDRESS = 0x310
  775. HDIO_GET_BUSSTATE = 0x31a
  776. HDIO_GET_DMA = 0x30b
  777. HDIO_GET_IDENTITY = 0x30d
  778. HDIO_GET_KEEPSETTINGS = 0x308
  779. HDIO_GET_MULTCOUNT = 0x304
  780. HDIO_GET_NICE = 0x30c
  781. HDIO_GET_NOWERR = 0x30a
  782. HDIO_GET_QDMA = 0x305
  783. HDIO_GET_UNMASKINTR = 0x302
  784. HDIO_GET_WCACHE = 0x30e
  785. HDIO_OBSOLETE_IDENTITY = 0x307
  786. HDIO_SCAN_HWIF = 0x328
  787. HDIO_SET_32BIT = 0x324
  788. HDIO_SET_ACOUSTIC = 0x32c
  789. HDIO_SET_ADDRESS = 0x32f
  790. HDIO_SET_BUSSTATE = 0x32d
  791. HDIO_SET_DMA = 0x326
  792. HDIO_SET_KEEPSETTINGS = 0x323
  793. HDIO_SET_MULTCOUNT = 0x321
  794. HDIO_SET_NICE = 0x329
  795. HDIO_SET_NOWERR = 0x325
  796. HDIO_SET_PIO_MODE = 0x327
  797. HDIO_SET_QDMA = 0x32e
  798. HDIO_SET_UNMASKINTR = 0x322
  799. HDIO_SET_WCACHE = 0x32b
  800. HDIO_SET_XFER = 0x306
  801. HDIO_TRISTATE_HWIF = 0x31b
  802. HDIO_UNREGISTER_HWIF = 0x32a
  803. HOSTFS_SUPER_MAGIC = 0xc0ffee
  804. HPFS_SUPER_MAGIC = 0xf995e849
  805. HUGETLBFS_MAGIC = 0x958458f6
  806. HUPCL = 0x400
  807. IBSHIFT = 0x10
  808. ICANON = 0x2
  809. ICMPV6_FILTER = 0x1
  810. ICRNL = 0x100
  811. IEXTEN = 0x8000
  812. IFA_F_DADFAILED = 0x8
  813. IFA_F_DEPRECATED = 0x20
  814. IFA_F_HOMEADDRESS = 0x10
  815. IFA_F_MANAGETEMPADDR = 0x100
  816. IFA_F_MCAUTOJOIN = 0x400
  817. IFA_F_NODAD = 0x2
  818. IFA_F_NOPREFIXROUTE = 0x200
  819. IFA_F_OPTIMISTIC = 0x4
  820. IFA_F_PERMANENT = 0x80
  821. IFA_F_SECONDARY = 0x1
  822. IFA_F_STABLE_PRIVACY = 0x800
  823. IFA_F_TEMPORARY = 0x1
  824. IFA_F_TENTATIVE = 0x40
  825. IFA_MAX = 0xa
  826. IFF_ALLMULTI = 0x200
  827. IFF_ATTACH_QUEUE = 0x200
  828. IFF_AUTOMEDIA = 0x4000
  829. IFF_BROADCAST = 0x2
  830. IFF_DEBUG = 0x4
  831. IFF_DETACH_QUEUE = 0x400
  832. IFF_DORMANT = 0x20000
  833. IFF_DYNAMIC = 0x8000
  834. IFF_ECHO = 0x40000
  835. IFF_LOOPBACK = 0x8
  836. IFF_LOWER_UP = 0x10000
  837. IFF_MASTER = 0x400
  838. IFF_MULTICAST = 0x1000
  839. IFF_MULTI_QUEUE = 0x100
  840. IFF_NAPI = 0x10
  841. IFF_NAPI_FRAGS = 0x20
  842. IFF_NOARP = 0x80
  843. IFF_NOFILTER = 0x1000
  844. IFF_NOTRAILERS = 0x20
  845. IFF_NO_PI = 0x1000
  846. IFF_ONE_QUEUE = 0x2000
  847. IFF_PERSIST = 0x800
  848. IFF_POINTOPOINT = 0x10
  849. IFF_PORTSEL = 0x2000
  850. IFF_PROMISC = 0x100
  851. IFF_RUNNING = 0x40
  852. IFF_SLAVE = 0x800
  853. IFF_TAP = 0x2
  854. IFF_TUN = 0x1
  855. IFF_TUN_EXCL = 0x8000
  856. IFF_UP = 0x1
  857. IFF_VNET_HDR = 0x4000
  858. IFF_VOLATILE = 0x70c5a
  859. IFNAMSIZ = 0x10
  860. IGNBRK = 0x1
  861. IGNCR = 0x80
  862. IGNPAR = 0x4
  863. IMAXBEL = 0x2000
  864. INLCR = 0x40
  865. INPCK = 0x10
  866. IN_ACCESS = 0x1
  867. IN_ALL_EVENTS = 0xfff
  868. IN_ATTRIB = 0x4
  869. IN_CLASSA_HOST = 0xffffff
  870. IN_CLASSA_MAX = 0x80
  871. IN_CLASSA_NET = 0xff000000
  872. IN_CLASSA_NSHIFT = 0x18
  873. IN_CLASSB_HOST = 0xffff
  874. IN_CLASSB_MAX = 0x10000
  875. IN_CLASSB_NET = 0xffff0000
  876. IN_CLASSB_NSHIFT = 0x10
  877. IN_CLASSC_HOST = 0xff
  878. IN_CLASSC_NET = 0xffffff00
  879. IN_CLASSC_NSHIFT = 0x8
  880. IN_CLOEXEC = 0x80000
  881. IN_CLOSE = 0x18
  882. IN_CLOSE_NOWRITE = 0x10
  883. IN_CLOSE_WRITE = 0x8
  884. IN_CREATE = 0x100
  885. IN_DELETE = 0x200
  886. IN_DELETE_SELF = 0x400
  887. IN_DONT_FOLLOW = 0x2000000
  888. IN_EXCL_UNLINK = 0x4000000
  889. IN_IGNORED = 0x8000
  890. IN_ISDIR = 0x40000000
  891. IN_LOOPBACKNET = 0x7f
  892. IN_MASK_ADD = 0x20000000
  893. IN_MASK_CREATE = 0x10000000
  894. IN_MODIFY = 0x2
  895. IN_MOVE = 0xc0
  896. IN_MOVED_FROM = 0x40
  897. IN_MOVED_TO = 0x80
  898. IN_MOVE_SELF = 0x800
  899. IN_NONBLOCK = 0x800
  900. IN_ONESHOT = 0x80000000
  901. IN_ONLYDIR = 0x1000000
  902. IN_OPEN = 0x20
  903. IN_Q_OVERFLOW = 0x4000
  904. IN_UNMOUNT = 0x2000
  905. IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x7b9
  906. IPPROTO_AH = 0x33
  907. IPPROTO_BEETPH = 0x5e
  908. IPPROTO_COMP = 0x6c
  909. IPPROTO_DCCP = 0x21
  910. IPPROTO_DSTOPTS = 0x3c
  911. IPPROTO_EGP = 0x8
  912. IPPROTO_ENCAP = 0x62
  913. IPPROTO_ESP = 0x32
  914. IPPROTO_FRAGMENT = 0x2c
  915. IPPROTO_GRE = 0x2f
  916. IPPROTO_HOPOPTS = 0x0
  917. IPPROTO_ICMP = 0x1
  918. IPPROTO_ICMPV6 = 0x3a
  919. IPPROTO_IDP = 0x16
  920. IPPROTO_IGMP = 0x2
  921. IPPROTO_IP = 0x0
  922. IPPROTO_IPIP = 0x4
  923. IPPROTO_IPV6 = 0x29
  924. IPPROTO_MH = 0x87
  925. IPPROTO_MPLS = 0x89
  926. IPPROTO_MTP = 0x5c
  927. IPPROTO_NONE = 0x3b
  928. IPPROTO_PIM = 0x67
  929. IPPROTO_PUP = 0xc
  930. IPPROTO_RAW = 0xff
  931. IPPROTO_ROUTING = 0x2b
  932. IPPROTO_RSVP = 0x2e
  933. IPPROTO_SCTP = 0x84
  934. IPPROTO_TCP = 0x6
  935. IPPROTO_TP = 0x1d
  936. IPPROTO_UDP = 0x11
  937. IPPROTO_UDPLITE = 0x88
  938. IPV6_2292DSTOPTS = 0x4
  939. IPV6_2292HOPLIMIT = 0x8
  940. IPV6_2292HOPOPTS = 0x3
  941. IPV6_2292PKTINFO = 0x2
  942. IPV6_2292PKTOPTIONS = 0x6
  943. IPV6_2292RTHDR = 0x5
  944. IPV6_ADDRFORM = 0x1
  945. IPV6_ADDR_PREFERENCES = 0x48
  946. IPV6_ADD_MEMBERSHIP = 0x14
  947. IPV6_AUTHHDR = 0xa
  948. IPV6_AUTOFLOWLABEL = 0x46
  949. IPV6_CHECKSUM = 0x7
  950. IPV6_DONTFRAG = 0x3e
  951. IPV6_DROP_MEMBERSHIP = 0x15
  952. IPV6_DSTOPTS = 0x3b
  953. IPV6_FREEBIND = 0x4e
  954. IPV6_HDRINCL = 0x24
  955. IPV6_HOPLIMIT = 0x34
  956. IPV6_HOPOPTS = 0x36
  957. IPV6_IPSEC_POLICY = 0x22
  958. IPV6_JOIN_ANYCAST = 0x1b
  959. IPV6_JOIN_GROUP = 0x14
  960. IPV6_LEAVE_ANYCAST = 0x1c
  961. IPV6_LEAVE_GROUP = 0x15
  962. IPV6_MINHOPCOUNT = 0x49
  963. IPV6_MTU = 0x18
  964. IPV6_MTU_DISCOVER = 0x17
  965. IPV6_MULTICAST_ALL = 0x1d
  966. IPV6_MULTICAST_HOPS = 0x12
  967. IPV6_MULTICAST_IF = 0x11
  968. IPV6_MULTICAST_LOOP = 0x13
  969. IPV6_NEXTHOP = 0x9
  970. IPV6_ORIGDSTADDR = 0x4a
  971. IPV6_PATHMTU = 0x3d
  972. IPV6_PKTINFO = 0x32
  973. IPV6_PMTUDISC_DO = 0x2
  974. IPV6_PMTUDISC_DONT = 0x0
  975. IPV6_PMTUDISC_INTERFACE = 0x4
  976. IPV6_PMTUDISC_OMIT = 0x5
  977. IPV6_PMTUDISC_PROBE = 0x3
  978. IPV6_PMTUDISC_WANT = 0x1
  979. IPV6_RECVDSTOPTS = 0x3a
  980. IPV6_RECVERR = 0x19
  981. IPV6_RECVFRAGSIZE = 0x4d
  982. IPV6_RECVHOPLIMIT = 0x33
  983. IPV6_RECVHOPOPTS = 0x35
  984. IPV6_RECVORIGDSTADDR = 0x4a
  985. IPV6_RECVPATHMTU = 0x3c
  986. IPV6_RECVPKTINFO = 0x31
  987. IPV6_RECVRTHDR = 0x38
  988. IPV6_RECVTCLASS = 0x42
  989. IPV6_ROUTER_ALERT = 0x16
  990. IPV6_ROUTER_ALERT_ISOLATE = 0x1e
  991. IPV6_RTHDR = 0x39
  992. IPV6_RTHDRDSTOPTS = 0x37
  993. IPV6_RTHDR_LOOSE = 0x0
  994. IPV6_RTHDR_STRICT = 0x1
  995. IPV6_RTHDR_TYPE_0 = 0x0
  996. IPV6_RXDSTOPTS = 0x3b
  997. IPV6_RXHOPOPTS = 0x36
  998. IPV6_TCLASS = 0x43
  999. IPV6_TRANSPARENT = 0x4b
  1000. IPV6_UNICAST_HOPS = 0x10
  1001. IPV6_UNICAST_IF = 0x4c
  1002. IPV6_V6ONLY = 0x1a
  1003. IPV6_XFRM_POLICY = 0x23
  1004. IP_ADD_MEMBERSHIP = 0x23
  1005. IP_ADD_SOURCE_MEMBERSHIP = 0x27
  1006. IP_BIND_ADDRESS_NO_PORT = 0x18
  1007. IP_BLOCK_SOURCE = 0x26
  1008. IP_CHECKSUM = 0x17
  1009. IP_DEFAULT_MULTICAST_LOOP = 0x1
  1010. IP_DEFAULT_MULTICAST_TTL = 0x1
  1011. IP_DF = 0x4000
  1012. IP_DROP_MEMBERSHIP = 0x24
  1013. IP_DROP_SOURCE_MEMBERSHIP = 0x28
  1014. IP_FREEBIND = 0xf
  1015. IP_HDRINCL = 0x3
  1016. IP_IPSEC_POLICY = 0x10
  1017. IP_MAXPACKET = 0xffff
  1018. IP_MAX_MEMBERSHIPS = 0x14
  1019. IP_MF = 0x2000
  1020. IP_MINTTL = 0x15
  1021. IP_MSFILTER = 0x29
  1022. IP_MSS = 0x240
  1023. IP_MTU = 0xe
  1024. IP_MTU_DISCOVER = 0xa
  1025. IP_MULTICAST_ALL = 0x31
  1026. IP_MULTICAST_IF = 0x20
  1027. IP_MULTICAST_LOOP = 0x22
  1028. IP_MULTICAST_TTL = 0x21
  1029. IP_NODEFRAG = 0x16
  1030. IP_OFFMASK = 0x1fff
  1031. IP_OPTIONS = 0x4
  1032. IP_ORIGDSTADDR = 0x14
  1033. IP_PASSSEC = 0x12
  1034. IP_PKTINFO = 0x8
  1035. IP_PKTOPTIONS = 0x9
  1036. IP_PMTUDISC = 0xa
  1037. IP_PMTUDISC_DO = 0x2
  1038. IP_PMTUDISC_DONT = 0x0
  1039. IP_PMTUDISC_INTERFACE = 0x4
  1040. IP_PMTUDISC_OMIT = 0x5
  1041. IP_PMTUDISC_PROBE = 0x3
  1042. IP_PMTUDISC_WANT = 0x1
  1043. IP_RECVERR = 0xb
  1044. IP_RECVFRAGSIZE = 0x19
  1045. IP_RECVOPTS = 0x6
  1046. IP_RECVORIGDSTADDR = 0x14
  1047. IP_RECVRETOPTS = 0x7
  1048. IP_RECVTOS = 0xd
  1049. IP_RECVTTL = 0xc
  1050. IP_RETOPTS = 0x7
  1051. IP_RF = 0x8000
  1052. IP_ROUTER_ALERT = 0x5
  1053. IP_TOS = 0x1
  1054. IP_TRANSPARENT = 0x13
  1055. IP_TTL = 0x2
  1056. IP_UNBLOCK_SOURCE = 0x25
  1057. IP_UNICAST_IF = 0x32
  1058. IP_XFRM_POLICY = 0x11
  1059. ISIG = 0x1
  1060. ISOFS_SUPER_MAGIC = 0x9660
  1061. ISTRIP = 0x20
  1062. IUCLC = 0x200
  1063. IUTF8 = 0x4000
  1064. IXANY = 0x800
  1065. IXOFF = 0x1000
  1066. IXON = 0x400
  1067. JFFS2_SUPER_MAGIC = 0x72b6
  1068. KEXEC_ARCH_386 = 0x30000
  1069. KEXEC_ARCH_68K = 0x40000
  1070. KEXEC_ARCH_AARCH64 = 0xb70000
  1071. KEXEC_ARCH_ARM = 0x280000
  1072. KEXEC_ARCH_DEFAULT = 0x0
  1073. KEXEC_ARCH_IA_64 = 0x320000
  1074. KEXEC_ARCH_MASK = 0xffff0000
  1075. KEXEC_ARCH_MIPS = 0x80000
  1076. KEXEC_ARCH_MIPS_LE = 0xa0000
  1077. KEXEC_ARCH_PPC = 0x140000
  1078. KEXEC_ARCH_PPC64 = 0x150000
  1079. KEXEC_ARCH_S390 = 0x160000
  1080. KEXEC_ARCH_SH = 0x2a0000
  1081. KEXEC_ARCH_X86_64 = 0x3e0000
  1082. KEXEC_FILE_NO_INITRAMFS = 0x4
  1083. KEXEC_FILE_ON_CRASH = 0x2
  1084. KEXEC_FILE_UNLOAD = 0x1
  1085. KEXEC_ON_CRASH = 0x1
  1086. KEXEC_PRESERVE_CONTEXT = 0x2
  1087. KEXEC_SEGMENT_MAX = 0x10
  1088. KEYCTL_ASSUME_AUTHORITY = 0x10
  1089. KEYCTL_CAPABILITIES = 0x1f
  1090. KEYCTL_CAPS0_BIG_KEY = 0x10
  1091. KEYCTL_CAPS0_CAPABILITIES = 0x1
  1092. KEYCTL_CAPS0_DIFFIE_HELLMAN = 0x4
  1093. KEYCTL_CAPS0_INVALIDATE = 0x20
  1094. KEYCTL_CAPS0_MOVE = 0x80
  1095. KEYCTL_CAPS0_PERSISTENT_KEYRINGS = 0x2
  1096. KEYCTL_CAPS0_PUBLIC_KEY = 0x8
  1097. KEYCTL_CAPS0_RESTRICT_KEYRING = 0x40
  1098. KEYCTL_CAPS1_NS_KEYRING_NAME = 0x1
  1099. KEYCTL_CAPS1_NS_KEY_TAG = 0x2
  1100. KEYCTL_CHOWN = 0x4
  1101. KEYCTL_CLEAR = 0x7
  1102. KEYCTL_DESCRIBE = 0x6
  1103. KEYCTL_DH_COMPUTE = 0x17
  1104. KEYCTL_GET_KEYRING_ID = 0x0
  1105. KEYCTL_GET_PERSISTENT = 0x16
  1106. KEYCTL_GET_SECURITY = 0x11
  1107. KEYCTL_INSTANTIATE = 0xc
  1108. KEYCTL_INSTANTIATE_IOV = 0x14
  1109. KEYCTL_INVALIDATE = 0x15
  1110. KEYCTL_JOIN_SESSION_KEYRING = 0x1
  1111. KEYCTL_LINK = 0x8
  1112. KEYCTL_MOVE = 0x1e
  1113. KEYCTL_MOVE_EXCL = 0x1
  1114. KEYCTL_NEGATE = 0xd
  1115. KEYCTL_PKEY_DECRYPT = 0x1a
  1116. KEYCTL_PKEY_ENCRYPT = 0x19
  1117. KEYCTL_PKEY_QUERY = 0x18
  1118. KEYCTL_PKEY_SIGN = 0x1b
  1119. KEYCTL_PKEY_VERIFY = 0x1c
  1120. KEYCTL_READ = 0xb
  1121. KEYCTL_REJECT = 0x13
  1122. KEYCTL_RESTRICT_KEYRING = 0x1d
  1123. KEYCTL_REVOKE = 0x3
  1124. KEYCTL_SEARCH = 0xa
  1125. KEYCTL_SESSION_TO_PARENT = 0x12
  1126. KEYCTL_SETPERM = 0x5
  1127. KEYCTL_SET_REQKEY_KEYRING = 0xe
  1128. KEYCTL_SET_TIMEOUT = 0xf
  1129. KEYCTL_SUPPORTS_DECRYPT = 0x2
  1130. KEYCTL_SUPPORTS_ENCRYPT = 0x1
  1131. KEYCTL_SUPPORTS_SIGN = 0x4
  1132. KEYCTL_SUPPORTS_VERIFY = 0x8
  1133. KEYCTL_UNLINK = 0x9
  1134. KEYCTL_UPDATE = 0x2
  1135. KEY_REQKEY_DEFL_DEFAULT = 0x0
  1136. KEY_REQKEY_DEFL_GROUP_KEYRING = 0x6
  1137. KEY_REQKEY_DEFL_NO_CHANGE = -0x1
  1138. KEY_REQKEY_DEFL_PROCESS_KEYRING = 0x2
  1139. KEY_REQKEY_DEFL_REQUESTOR_KEYRING = 0x7
  1140. KEY_REQKEY_DEFL_SESSION_KEYRING = 0x3
  1141. KEY_REQKEY_DEFL_THREAD_KEYRING = 0x1
  1142. KEY_REQKEY_DEFL_USER_KEYRING = 0x4
  1143. KEY_REQKEY_DEFL_USER_SESSION_KEYRING = 0x5
  1144. KEY_SPEC_GROUP_KEYRING = -0x6
  1145. KEY_SPEC_PROCESS_KEYRING = -0x2
  1146. KEY_SPEC_REQKEY_AUTH_KEY = -0x7
  1147. KEY_SPEC_REQUESTOR_KEYRING = -0x8
  1148. KEY_SPEC_SESSION_KEYRING = -0x3
  1149. KEY_SPEC_THREAD_KEYRING = -0x1
  1150. KEY_SPEC_USER_KEYRING = -0x4
  1151. KEY_SPEC_USER_SESSION_KEYRING = -0x5
  1152. LINUX_REBOOT_CMD_CAD_OFF = 0x0
  1153. LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef
  1154. LINUX_REBOOT_CMD_HALT = 0xcdef0123
  1155. LINUX_REBOOT_CMD_KEXEC = 0x45584543
  1156. LINUX_REBOOT_CMD_POWER_OFF = 0x4321fedc
  1157. LINUX_REBOOT_CMD_RESTART = 0x1234567
  1158. LINUX_REBOOT_CMD_RESTART2 = 0xa1b2c3d4
  1159. LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
  1160. LINUX_REBOOT_MAGIC1 = 0xfee1dead
  1161. LINUX_REBOOT_MAGIC2 = 0x28121969
  1162. LOCK_EX = 0x2
  1163. LOCK_NB = 0x4
  1164. LOCK_SH = 0x1
  1165. LOCK_UN = 0x8
  1166. LOOP_CLR_FD = 0x4c01
  1167. LOOP_CTL_ADD = 0x4c80
  1168. LOOP_CTL_GET_FREE = 0x4c82
  1169. LOOP_CTL_REMOVE = 0x4c81
  1170. LOOP_GET_STATUS = 0x4c03
  1171. LOOP_GET_STATUS64 = 0x4c05
  1172. LOOP_SET_BLOCK_SIZE = 0x4c09
  1173. LOOP_SET_CAPACITY = 0x4c07
  1174. LOOP_SET_DIRECT_IO = 0x4c08
  1175. LOOP_SET_FD = 0x4c00
  1176. LOOP_SET_STATUS = 0x4c02
  1177. LOOP_SET_STATUS64 = 0x4c04
  1178. LO_KEY_SIZE = 0x20
  1179. LO_NAME_SIZE = 0x40
  1180. MADV_DODUMP = 0x11
  1181. MADV_DOFORK = 0xb
  1182. MADV_DONTDUMP = 0x10
  1183. MADV_DONTFORK = 0xa
  1184. MADV_DONTNEED = 0x4
  1185. MADV_FREE = 0x8
  1186. MADV_HUGEPAGE = 0xe
  1187. MADV_HWPOISON = 0x64
  1188. MADV_KEEPONFORK = 0x13
  1189. MADV_MERGEABLE = 0xc
  1190. MADV_NOHUGEPAGE = 0xf
  1191. MADV_NORMAL = 0x0
  1192. MADV_RANDOM = 0x1
  1193. MADV_REMOVE = 0x9
  1194. MADV_SEQUENTIAL = 0x2
  1195. MADV_UNMERGEABLE = 0xd
  1196. MADV_WILLNEED = 0x3
  1197. MADV_WIPEONFORK = 0x12
  1198. MAP_32BIT = 0x40
  1199. MAP_ANON = 0x20
  1200. MAP_ANONYMOUS = 0x20
  1201. MAP_DENYWRITE = 0x800
  1202. MAP_EXECUTABLE = 0x1000
  1203. MAP_FILE = 0x0
  1204. MAP_FIXED = 0x10
  1205. MAP_FIXED_NOREPLACE = 0x100000
  1206. MAP_GROWSDOWN = 0x100
  1207. MAP_HUGETLB = 0x40000
  1208. MAP_HUGE_MASK = 0x3f
  1209. MAP_HUGE_SHIFT = 0x1a
  1210. MAP_LOCKED = 0x2000
  1211. MAP_NONBLOCK = 0x10000
  1212. MAP_NORESERVE = 0x4000
  1213. MAP_POPULATE = 0x8000
  1214. MAP_PRIVATE = 0x2
  1215. MAP_SHARED = 0x1
  1216. MAP_SHARED_VALIDATE = 0x3
  1217. MAP_STACK = 0x20000
  1218. MAP_SYNC = 0x80000
  1219. MAP_TYPE = 0xf
  1220. MCAST_BLOCK_SOURCE = 0x2b
  1221. MCAST_EXCLUDE = 0x0
  1222. MCAST_INCLUDE = 0x1
  1223. MCAST_JOIN_GROUP = 0x2a
  1224. MCAST_JOIN_SOURCE_GROUP = 0x2e
  1225. MCAST_LEAVE_GROUP = 0x2d
  1226. MCAST_LEAVE_SOURCE_GROUP = 0x2f
  1227. MCAST_MSFILTER = 0x30
  1228. MCAST_UNBLOCK_SOURCE = 0x2c
  1229. MCL_CURRENT = 0x1
  1230. MCL_FUTURE = 0x2
  1231. MCL_ONFAULT = 0x4
  1232. MFD_ALLOW_SEALING = 0x2
  1233. MFD_CLOEXEC = 0x1
  1234. MFD_HUGETLB = 0x4
  1235. MFD_HUGE_16GB = -0x78000000
  1236. MFD_HUGE_16MB = 0x60000000
  1237. MFD_HUGE_1GB = 0x78000000
  1238. MFD_HUGE_1MB = 0x50000000
  1239. MFD_HUGE_256MB = 0x70000000
  1240. MFD_HUGE_2GB = 0x7c000000
  1241. MFD_HUGE_2MB = 0x54000000
  1242. MFD_HUGE_32MB = 0x64000000
  1243. MFD_HUGE_512KB = 0x4c000000
  1244. MFD_HUGE_512MB = 0x74000000
  1245. MFD_HUGE_64KB = 0x40000000
  1246. MFD_HUGE_8MB = 0x5c000000
  1247. MFD_HUGE_MASK = 0x3f
  1248. MFD_HUGE_SHIFT = 0x1a
  1249. MINIX2_SUPER_MAGIC = 0x2468
  1250. MINIX2_SUPER_MAGIC2 = 0x2478
  1251. MINIX3_SUPER_MAGIC = 0x4d5a
  1252. MINIX_SUPER_MAGIC = 0x137f
  1253. MINIX_SUPER_MAGIC2 = 0x138f
  1254. MNT_DETACH = 0x2
  1255. MNT_EXPIRE = 0x4
  1256. MNT_FORCE = 0x1
  1257. MODULE_INIT_IGNORE_MODVERSIONS = 0x1
  1258. MODULE_INIT_IGNORE_VERMAGIC = 0x2
  1259. MSDOS_SUPER_MAGIC = 0x4d44
  1260. MSG_BATCH = 0x40000
  1261. MSG_CMSG_CLOEXEC = 0x40000000
  1262. MSG_CONFIRM = 0x800
  1263. MSG_CTRUNC = 0x8
  1264. MSG_DONTROUTE = 0x4
  1265. MSG_DONTWAIT = 0x40
  1266. MSG_EOR = 0x80
  1267. MSG_ERRQUEUE = 0x2000
  1268. MSG_FASTOPEN = 0x20000000
  1269. MSG_FIN = 0x200
  1270. MSG_MORE = 0x8000
  1271. MSG_NOSIGNAL = 0x4000
  1272. MSG_OOB = 0x1
  1273. MSG_PEEK = 0x2
  1274. MSG_PROXY = 0x10
  1275. MSG_RST = 0x1000
  1276. MSG_SYN = 0x400
  1277. MSG_TRUNC = 0x20
  1278. MSG_TRYHARD = 0x4
  1279. MSG_WAITALL = 0x100
  1280. MSG_WAITFORONE = 0x10000
  1281. MSG_ZEROCOPY = 0x4000000
  1282. MS_ACTIVE = 0x40000000
  1283. MS_ASYNC = 0x1
  1284. MS_BIND = 0x1000
  1285. MS_BORN = 0x20000000
  1286. MS_DIRSYNC = 0x80
  1287. MS_INVALIDATE = 0x2
  1288. MS_I_VERSION = 0x800000
  1289. MS_KERNMOUNT = 0x400000
  1290. MS_LAZYTIME = 0x2000000
  1291. MS_MANDLOCK = 0x40
  1292. MS_MGC_MSK = 0xffff0000
  1293. MS_MGC_VAL = 0xc0ed0000
  1294. MS_MOVE = 0x2000
  1295. MS_NOATIME = 0x400
  1296. MS_NODEV = 0x4
  1297. MS_NODIRATIME = 0x800
  1298. MS_NOEXEC = 0x8
  1299. MS_NOREMOTELOCK = 0x8000000
  1300. MS_NOSEC = 0x10000000
  1301. MS_NOSUID = 0x2
  1302. MS_NOUSER = -0x80000000
  1303. MS_POSIXACL = 0x10000
  1304. MS_PRIVATE = 0x40000
  1305. MS_RDONLY = 0x1
  1306. MS_REC = 0x4000
  1307. MS_RELATIME = 0x200000
  1308. MS_REMOUNT = 0x20
  1309. MS_RMT_MASK = 0x2800051
  1310. MS_SHARED = 0x100000
  1311. MS_SILENT = 0x8000
  1312. MS_SLAVE = 0x80000
  1313. MS_STRICTATIME = 0x1000000
  1314. MS_SUBMOUNT = 0x4000000
  1315. MS_SYNC = 0x4
  1316. MS_SYNCHRONOUS = 0x10
  1317. MS_UNBINDABLE = 0x20000
  1318. MS_VERBOSE = 0x8000
  1319. MTD_INODE_FS_MAGIC = 0x11307854
  1320. NAME_MAX = 0xff
  1321. NCP_SUPER_MAGIC = 0x564c
  1322. NETLINK_ADD_MEMBERSHIP = 0x1
  1323. NETLINK_AUDIT = 0x9
  1324. NETLINK_BROADCAST_ERROR = 0x4
  1325. NETLINK_CAP_ACK = 0xa
  1326. NETLINK_CONNECTOR = 0xb
  1327. NETLINK_CRYPTO = 0x15
  1328. NETLINK_DNRTMSG = 0xe
  1329. NETLINK_DROP_MEMBERSHIP = 0x2
  1330. NETLINK_ECRYPTFS = 0x13
  1331. NETLINK_EXT_ACK = 0xb
  1332. NETLINK_FIB_LOOKUP = 0xa
  1333. NETLINK_FIREWALL = 0x3
  1334. NETLINK_GENERIC = 0x10
  1335. NETLINK_GET_STRICT_CHK = 0xc
  1336. NETLINK_INET_DIAG = 0x4
  1337. NETLINK_IP6_FW = 0xd
  1338. NETLINK_ISCSI = 0x8
  1339. NETLINK_KOBJECT_UEVENT = 0xf
  1340. NETLINK_LISTEN_ALL_NSID = 0x8
  1341. NETLINK_LIST_MEMBERSHIPS = 0x9
  1342. NETLINK_NETFILTER = 0xc
  1343. NETLINK_NFLOG = 0x5
  1344. NETLINK_NO_ENOBUFS = 0x5
  1345. NETLINK_PKTINFO = 0x3
  1346. NETLINK_RDMA = 0x14
  1347. NETLINK_ROUTE = 0x0
  1348. NETLINK_RX_RING = 0x6
  1349. NETLINK_SCSITRANSPORT = 0x12
  1350. NETLINK_SELINUX = 0x7
  1351. NETLINK_SMC = 0x16
  1352. NETLINK_SOCK_DIAG = 0x4
  1353. NETLINK_TX_RING = 0x7
  1354. NETLINK_UNUSED = 0x1
  1355. NETLINK_USERSOCK = 0x2
  1356. NETLINK_XFRM = 0x6
  1357. NETNSA_MAX = 0x5
  1358. NETNSA_NSID_NOT_ASSIGNED = -0x1
  1359. NFDBITS = 0x20
  1360. NFNETLINK_V0 = 0x0
  1361. NFNLGRP_ACCT_QUOTA = 0x8
  1362. NFNLGRP_CONNTRACK_DESTROY = 0x3
  1363. NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
  1364. NFNLGRP_CONNTRACK_EXP_NEW = 0x4
  1365. NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
  1366. NFNLGRP_CONNTRACK_NEW = 0x1
  1367. NFNLGRP_CONNTRACK_UPDATE = 0x2
  1368. NFNLGRP_MAX = 0x9
  1369. NFNLGRP_NFTABLES = 0x7
  1370. NFNLGRP_NFTRACE = 0x9
  1371. NFNLGRP_NONE = 0x0
  1372. NFNL_BATCH_MAX = 0x1
  1373. NFNL_MSG_BATCH_BEGIN = 0x10
  1374. NFNL_MSG_BATCH_END = 0x11
  1375. NFNL_NFA_NEST = 0x8000
  1376. NFNL_SUBSYS_ACCT = 0x7
  1377. NFNL_SUBSYS_COUNT = 0xc
  1378. NFNL_SUBSYS_CTHELPER = 0x9
  1379. NFNL_SUBSYS_CTNETLINK = 0x1
  1380. NFNL_SUBSYS_CTNETLINK_EXP = 0x2
  1381. NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
  1382. NFNL_SUBSYS_IPSET = 0x6
  1383. NFNL_SUBSYS_NFTABLES = 0xa
  1384. NFNL_SUBSYS_NFT_COMPAT = 0xb
  1385. NFNL_SUBSYS_NONE = 0x0
  1386. NFNL_SUBSYS_OSF = 0x5
  1387. NFNL_SUBSYS_QUEUE = 0x3
  1388. NFNL_SUBSYS_ULOG = 0x4
  1389. NFS_SUPER_MAGIC = 0x6969
  1390. NILFS_SUPER_MAGIC = 0x3434
  1391. NL0 = 0x0
  1392. NL1 = 0x100
  1393. NLA_ALIGNTO = 0x4
  1394. NLA_F_NESTED = 0x8000
  1395. NLA_F_NET_BYTEORDER = 0x4000
  1396. NLA_HDRLEN = 0x4
  1397. NLDLY = 0x100
  1398. NLMSG_ALIGNTO = 0x4
  1399. NLMSG_DONE = 0x3
  1400. NLMSG_ERROR = 0x2
  1401. NLMSG_HDRLEN = 0x10
  1402. NLMSG_MIN_TYPE = 0x10
  1403. NLMSG_NOOP = 0x1
  1404. NLMSG_OVERRUN = 0x4
  1405. NLM_F_ACK = 0x4
  1406. NLM_F_ACK_TLVS = 0x200
  1407. NLM_F_APPEND = 0x800
  1408. NLM_F_ATOMIC = 0x400
  1409. NLM_F_CAPPED = 0x100
  1410. NLM_F_CREATE = 0x400
  1411. NLM_F_DUMP = 0x300
  1412. NLM_F_DUMP_FILTERED = 0x20
  1413. NLM_F_DUMP_INTR = 0x10
  1414. NLM_F_ECHO = 0x8
  1415. NLM_F_EXCL = 0x200
  1416. NLM_F_MATCH = 0x200
  1417. NLM_F_MULTI = 0x2
  1418. NLM_F_NONREC = 0x100
  1419. NLM_F_REPLACE = 0x100
  1420. NLM_F_REQUEST = 0x1
  1421. NLM_F_ROOT = 0x100
  1422. NOFLSH = 0x80
  1423. NSFS_MAGIC = 0x6e736673
  1424. NS_GET_NSTYPE = 0xb703
  1425. NS_GET_OWNER_UID = 0xb704
  1426. NS_GET_PARENT = 0xb702
  1427. NS_GET_USERNS = 0xb701
  1428. OCFS2_SUPER_MAGIC = 0x7461636f
  1429. OCRNL = 0x8
  1430. OFDEL = 0x80
  1431. OFILL = 0x40
  1432. OLCUC = 0x2
  1433. ONLCR = 0x4
  1434. ONLRET = 0x20
  1435. ONOCR = 0x10
  1436. OPENPROM_SUPER_MAGIC = 0x9fa1
  1437. OPOST = 0x1
  1438. OVERLAYFS_SUPER_MAGIC = 0x794c7630
  1439. O_ACCMODE = 0x3
  1440. O_APPEND = 0x400
  1441. O_ASYNC = 0x2000
  1442. O_CLOEXEC = 0x80000
  1443. O_CREAT = 0x40
  1444. O_DIRECT = 0x4000
  1445. O_DIRECTORY = 0x10000
  1446. O_DSYNC = 0x1000
  1447. O_EXCL = 0x80
  1448. O_FSYNC = 0x101000
  1449. O_LARGEFILE = 0x8000
  1450. O_NDELAY = 0x800
  1451. O_NOATIME = 0x40000
  1452. O_NOCTTY = 0x100
  1453. O_NOFOLLOW = 0x20000
  1454. O_NONBLOCK = 0x800
  1455. O_PATH = 0x200000
  1456. O_RDONLY = 0x0
  1457. O_RDWR = 0x2
  1458. O_RSYNC = 0x101000
  1459. O_SYNC = 0x101000
  1460. O_TMPFILE = 0x410000
  1461. O_TRUNC = 0x200
  1462. O_WRONLY = 0x1
  1463. PACKET_ADD_MEMBERSHIP = 0x1
  1464. PACKET_AUXDATA = 0x8
  1465. PACKET_BROADCAST = 0x1
  1466. PACKET_COPY_THRESH = 0x7
  1467. PACKET_DROP_MEMBERSHIP = 0x2
  1468. PACKET_FANOUT = 0x12
  1469. PACKET_FANOUT_CBPF = 0x6
  1470. PACKET_FANOUT_CPU = 0x2
  1471. PACKET_FANOUT_DATA = 0x16
  1472. PACKET_FANOUT_EBPF = 0x7
  1473. PACKET_FANOUT_FLAG_DEFRAG = 0x8000
  1474. PACKET_FANOUT_FLAG_ROLLOVER = 0x1000
  1475. PACKET_FANOUT_FLAG_UNIQUEID = 0x2000
  1476. PACKET_FANOUT_HASH = 0x0
  1477. PACKET_FANOUT_LB = 0x1
  1478. PACKET_FANOUT_QM = 0x5
  1479. PACKET_FANOUT_RND = 0x4
  1480. PACKET_FANOUT_ROLLOVER = 0x3
  1481. PACKET_FASTROUTE = 0x6
  1482. PACKET_HDRLEN = 0xb
  1483. PACKET_HOST = 0x0
  1484. PACKET_IGNORE_OUTGOING = 0x17
  1485. PACKET_KERNEL = 0x7
  1486. PACKET_LOOPBACK = 0x5
  1487. PACKET_LOSS = 0xe
  1488. PACKET_MR_ALLMULTI = 0x2
  1489. PACKET_MR_MULTICAST = 0x0
  1490. PACKET_MR_PROMISC = 0x1
  1491. PACKET_MR_UNICAST = 0x3
  1492. PACKET_MULTICAST = 0x2
  1493. PACKET_ORIGDEV = 0x9
  1494. PACKET_OTHERHOST = 0x3
  1495. PACKET_OUTGOING = 0x4
  1496. PACKET_QDISC_BYPASS = 0x14
  1497. PACKET_RECV_OUTPUT = 0x3
  1498. PACKET_RESERVE = 0xc
  1499. PACKET_ROLLOVER_STATS = 0x15
  1500. PACKET_RX_RING = 0x5
  1501. PACKET_STATISTICS = 0x6
  1502. PACKET_TIMESTAMP = 0x11
  1503. PACKET_TX_HAS_OFF = 0x13
  1504. PACKET_TX_RING = 0xd
  1505. PACKET_TX_TIMESTAMP = 0x10
  1506. PACKET_USER = 0x6
  1507. PACKET_VERSION = 0xa
  1508. PACKET_VNET_HDR = 0xf
  1509. PARENB = 0x100
  1510. PARITY_CRC16_PR0 = 0x2
  1511. PARITY_CRC16_PR0_CCITT = 0x4
  1512. PARITY_CRC16_PR1 = 0x3
  1513. PARITY_CRC16_PR1_CCITT = 0x5
  1514. PARITY_CRC32_PR0_CCITT = 0x6
  1515. PARITY_CRC32_PR1_CCITT = 0x7
  1516. PARITY_DEFAULT = 0x0
  1517. PARITY_NONE = 0x1
  1518. PARMRK = 0x8
  1519. PARODD = 0x200
  1520. PENDIN = 0x4000
  1521. PERF_EVENT_IOC_DISABLE = 0x2401
  1522. PERF_EVENT_IOC_ENABLE = 0x2400
  1523. PERF_EVENT_IOC_ID = 0x80042407
  1524. PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
  1525. PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
  1526. PERF_EVENT_IOC_PERIOD = 0x40082404
  1527. PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
  1528. PERF_EVENT_IOC_REFRESH = 0x2402
  1529. PERF_EVENT_IOC_RESET = 0x2403
  1530. PERF_EVENT_IOC_SET_BPF = 0x40042408
  1531. PERF_EVENT_IOC_SET_FILTER = 0x40042406
  1532. PERF_EVENT_IOC_SET_OUTPUT = 0x2405
  1533. PIPEFS_MAGIC = 0x50495045
  1534. PPPIOCATTACH = 0x4004743d
  1535. PPPIOCATTCHAN = 0x40047438
  1536. PPPIOCCONNECT = 0x4004743a
  1537. PPPIOCDETACH = 0x4004743c
  1538. PPPIOCDISCONN = 0x7439
  1539. PPPIOCGASYNCMAP = 0x80047458
  1540. PPPIOCGCHAN = 0x80047437
  1541. PPPIOCGDEBUG = 0x80047441
  1542. PPPIOCGFLAGS = 0x8004745a
  1543. PPPIOCGIDLE = 0x8008743f
  1544. PPPIOCGL2TPSTATS = 0x80487436
  1545. PPPIOCGMRU = 0x80047453
  1546. PPPIOCGNPMODE = 0xc008744c
  1547. PPPIOCGRASYNCMAP = 0x80047455
  1548. PPPIOCGUNIT = 0x80047456
  1549. PPPIOCGXASYNCMAP = 0x80207450
  1550. PPPIOCNEWUNIT = 0xc004743e
  1551. PPPIOCSACTIVE = 0x40087446
  1552. PPPIOCSASYNCMAP = 0x40047457
  1553. PPPIOCSCOMPRESS = 0x400c744d
  1554. PPPIOCSDEBUG = 0x40047440
  1555. PPPIOCSFLAGS = 0x40047459
  1556. PPPIOCSMAXCID = 0x40047451
  1557. PPPIOCSMRRU = 0x4004743b
  1558. PPPIOCSMRU = 0x40047452
  1559. PPPIOCSNPMODE = 0x4008744b
  1560. PPPIOCSPASS = 0x40087447
  1561. PPPIOCSRASYNCMAP = 0x40047454
  1562. PPPIOCSXASYNCMAP = 0x4020744f
  1563. PPPIOCXFERUNIT = 0x744e
  1564. PRIO_PGRP = 0x1
  1565. PRIO_PROCESS = 0x0
  1566. PRIO_USER = 0x2
  1567. PROC_SUPER_MAGIC = 0x9fa0
  1568. PROT_EXEC = 0x4
  1569. PROT_GROWSDOWN = 0x1000000
  1570. PROT_GROWSUP = 0x2000000
  1571. PROT_NONE = 0x0
  1572. PROT_READ = 0x1
  1573. PROT_WRITE = 0x2
  1574. PR_CAPBSET_DROP = 0x18
  1575. PR_CAPBSET_READ = 0x17
  1576. PR_CAP_AMBIENT = 0x2f
  1577. PR_CAP_AMBIENT_CLEAR_ALL = 0x4
  1578. PR_CAP_AMBIENT_IS_SET = 0x1
  1579. PR_CAP_AMBIENT_LOWER = 0x3
  1580. PR_CAP_AMBIENT_RAISE = 0x2
  1581. PR_ENDIAN_BIG = 0x0
  1582. PR_ENDIAN_LITTLE = 0x1
  1583. PR_ENDIAN_PPC_LITTLE = 0x2
  1584. PR_FPEMU_NOPRINT = 0x1
  1585. PR_FPEMU_SIGFPE = 0x2
  1586. PR_FP_EXC_ASYNC = 0x2
  1587. PR_FP_EXC_DISABLED = 0x0
  1588. PR_FP_EXC_DIV = 0x10000
  1589. PR_FP_EXC_INV = 0x100000
  1590. PR_FP_EXC_NONRECOV = 0x1
  1591. PR_FP_EXC_OVF = 0x20000
  1592. PR_FP_EXC_PRECISE = 0x3
  1593. PR_FP_EXC_RES = 0x80000
  1594. PR_FP_EXC_SW_ENABLE = 0x80
  1595. PR_FP_EXC_UND = 0x40000
  1596. PR_FP_MODE_FR = 0x1
  1597. PR_FP_MODE_FRE = 0x2
  1598. PR_GET_CHILD_SUBREAPER = 0x25
  1599. PR_GET_DUMPABLE = 0x3
  1600. PR_GET_ENDIAN = 0x13
  1601. PR_GET_FPEMU = 0x9
  1602. PR_GET_FPEXC = 0xb
  1603. PR_GET_FP_MODE = 0x2e
  1604. PR_GET_KEEPCAPS = 0x7
  1605. PR_GET_NAME = 0x10
  1606. PR_GET_NO_NEW_PRIVS = 0x27
  1607. PR_GET_PDEATHSIG = 0x2
  1608. PR_GET_SECCOMP = 0x15
  1609. PR_GET_SECUREBITS = 0x1b
  1610. PR_GET_SPECULATION_CTRL = 0x34
  1611. PR_GET_THP_DISABLE = 0x2a
  1612. PR_GET_TID_ADDRESS = 0x28
  1613. PR_GET_TIMERSLACK = 0x1e
  1614. PR_GET_TIMING = 0xd
  1615. PR_GET_TSC = 0x19
  1616. PR_GET_UNALIGN = 0x5
  1617. PR_MCE_KILL = 0x21
  1618. PR_MCE_KILL_CLEAR = 0x0
  1619. PR_MCE_KILL_DEFAULT = 0x2
  1620. PR_MCE_KILL_EARLY = 0x1
  1621. PR_MCE_KILL_GET = 0x22
  1622. PR_MCE_KILL_LATE = 0x0
  1623. PR_MCE_KILL_SET = 0x1
  1624. PR_MPX_DISABLE_MANAGEMENT = 0x2c
  1625. PR_MPX_ENABLE_MANAGEMENT = 0x2b
  1626. PR_PAC_APDAKEY = 0x4
  1627. PR_PAC_APDBKEY = 0x8
  1628. PR_PAC_APGAKEY = 0x10
  1629. PR_PAC_APIAKEY = 0x1
  1630. PR_PAC_APIBKEY = 0x2
  1631. PR_PAC_RESET_KEYS = 0x36
  1632. PR_SET_CHILD_SUBREAPER = 0x24
  1633. PR_SET_DUMPABLE = 0x4
  1634. PR_SET_ENDIAN = 0x14
  1635. PR_SET_FPEMU = 0xa
  1636. PR_SET_FPEXC = 0xc
  1637. PR_SET_FP_MODE = 0x2d
  1638. PR_SET_KEEPCAPS = 0x8
  1639. PR_SET_MM = 0x23
  1640. PR_SET_MM_ARG_END = 0x9
  1641. PR_SET_MM_ARG_START = 0x8
  1642. PR_SET_MM_AUXV = 0xc
  1643. PR_SET_MM_BRK = 0x7
  1644. PR_SET_MM_END_CODE = 0x2
  1645. PR_SET_MM_END_DATA = 0x4
  1646. PR_SET_MM_ENV_END = 0xb
  1647. PR_SET_MM_ENV_START = 0xa
  1648. PR_SET_MM_EXE_FILE = 0xd
  1649. PR_SET_MM_MAP = 0xe
  1650. PR_SET_MM_MAP_SIZE = 0xf
  1651. PR_SET_MM_START_BRK = 0x6
  1652. PR_SET_MM_START_CODE = 0x1
  1653. PR_SET_MM_START_DATA = 0x3
  1654. PR_SET_MM_START_STACK = 0x5
  1655. PR_SET_NAME = 0xf
  1656. PR_SET_NO_NEW_PRIVS = 0x26
  1657. PR_SET_PDEATHSIG = 0x1
  1658. PR_SET_PTRACER = 0x59616d61
  1659. PR_SET_PTRACER_ANY = 0xffffffff
  1660. PR_SET_SECCOMP = 0x16
  1661. PR_SET_SECUREBITS = 0x1c
  1662. PR_SET_SPECULATION_CTRL = 0x35
  1663. PR_SET_THP_DISABLE = 0x29
  1664. PR_SET_TIMERSLACK = 0x1d
  1665. PR_SET_TIMING = 0xe
  1666. PR_SET_TSC = 0x1a
  1667. PR_SET_UNALIGN = 0x6
  1668. PR_SPEC_DISABLE = 0x4
  1669. PR_SPEC_DISABLE_NOEXEC = 0x10
  1670. PR_SPEC_ENABLE = 0x2
  1671. PR_SPEC_FORCE_DISABLE = 0x8
  1672. PR_SPEC_INDIRECT_BRANCH = 0x1
  1673. PR_SPEC_NOT_AFFECTED = 0x0
  1674. PR_SPEC_PRCTL = 0x1
  1675. PR_SPEC_STORE_BYPASS = 0x0
  1676. PR_SVE_GET_VL = 0x33
  1677. PR_SVE_SET_VL = 0x32
  1678. PR_SVE_SET_VL_ONEXEC = 0x40000
  1679. PR_SVE_VL_INHERIT = 0x20000
  1680. PR_SVE_VL_LEN_MASK = 0xffff
  1681. PR_TASK_PERF_EVENTS_DISABLE = 0x1f
  1682. PR_TASK_PERF_EVENTS_ENABLE = 0x20
  1683. PR_TIMING_STATISTICAL = 0x0
  1684. PR_TIMING_TIMESTAMP = 0x1
  1685. PR_TSC_ENABLE = 0x1
  1686. PR_TSC_SIGSEGV = 0x2
  1687. PR_UNALIGN_NOPRINT = 0x1
  1688. PR_UNALIGN_SIGBUS = 0x2
  1689. PSTOREFS_MAGIC = 0x6165676c
  1690. PTRACE_ATTACH = 0x10
  1691. PTRACE_CONT = 0x7
  1692. PTRACE_DETACH = 0x11
  1693. PTRACE_EVENTMSG_SYSCALL_ENTRY = 0x1
  1694. PTRACE_EVENTMSG_SYSCALL_EXIT = 0x2
  1695. PTRACE_EVENT_CLONE = 0x3
  1696. PTRACE_EVENT_EXEC = 0x4
  1697. PTRACE_EVENT_EXIT = 0x6
  1698. PTRACE_EVENT_FORK = 0x1
  1699. PTRACE_EVENT_SECCOMP = 0x7
  1700. PTRACE_EVENT_STOP = 0x80
  1701. PTRACE_EVENT_VFORK = 0x2
  1702. PTRACE_EVENT_VFORK_DONE = 0x5
  1703. PTRACE_GETEVENTMSG = 0x4201
  1704. PTRACE_GETFPREGS = 0xe
  1705. PTRACE_GETFPXREGS = 0x12
  1706. PTRACE_GETREGS = 0xc
  1707. PTRACE_GETREGSET = 0x4204
  1708. PTRACE_GETSIGINFO = 0x4202
  1709. PTRACE_GETSIGMASK = 0x420a
  1710. PTRACE_GET_SYSCALL_INFO = 0x420e
  1711. PTRACE_GET_THREAD_AREA = 0x19
  1712. PTRACE_INTERRUPT = 0x4207
  1713. PTRACE_KILL = 0x8
  1714. PTRACE_LISTEN = 0x4208
  1715. PTRACE_OLDSETOPTIONS = 0x15
  1716. PTRACE_O_EXITKILL = 0x100000
  1717. PTRACE_O_MASK = 0x3000ff
  1718. PTRACE_O_SUSPEND_SECCOMP = 0x200000
  1719. PTRACE_O_TRACECLONE = 0x8
  1720. PTRACE_O_TRACEEXEC = 0x10
  1721. PTRACE_O_TRACEEXIT = 0x40
  1722. PTRACE_O_TRACEFORK = 0x2
  1723. PTRACE_O_TRACESECCOMP = 0x80
  1724. PTRACE_O_TRACESYSGOOD = 0x1
  1725. PTRACE_O_TRACEVFORK = 0x4
  1726. PTRACE_O_TRACEVFORKDONE = 0x20
  1727. PTRACE_PEEKDATA = 0x2
  1728. PTRACE_PEEKSIGINFO = 0x4209
  1729. PTRACE_PEEKSIGINFO_SHARED = 0x1
  1730. PTRACE_PEEKTEXT = 0x1
  1731. PTRACE_PEEKUSR = 0x3
  1732. PTRACE_POKEDATA = 0x5
  1733. PTRACE_POKETEXT = 0x4
  1734. PTRACE_POKEUSR = 0x6
  1735. PTRACE_SECCOMP_GET_FILTER = 0x420c
  1736. PTRACE_SECCOMP_GET_METADATA = 0x420d
  1737. PTRACE_SEIZE = 0x4206
  1738. PTRACE_SETFPREGS = 0xf
  1739. PTRACE_SETFPXREGS = 0x13
  1740. PTRACE_SETOPTIONS = 0x4200
  1741. PTRACE_SETREGS = 0xd
  1742. PTRACE_SETREGSET = 0x4205
  1743. PTRACE_SETSIGINFO = 0x4203
  1744. PTRACE_SETSIGMASK = 0x420b
  1745. PTRACE_SET_THREAD_AREA = 0x1a
  1746. PTRACE_SINGLEBLOCK = 0x21
  1747. PTRACE_SINGLESTEP = 0x9
  1748. PTRACE_SYSCALL = 0x18
  1749. PTRACE_SYSCALL_INFO_ENTRY = 0x1
  1750. PTRACE_SYSCALL_INFO_EXIT = 0x2
  1751. PTRACE_SYSCALL_INFO_NONE = 0x0
  1752. PTRACE_SYSCALL_INFO_SECCOMP = 0x3
  1753. PTRACE_SYSEMU = 0x1f
  1754. PTRACE_SYSEMU_SINGLESTEP = 0x20
  1755. PTRACE_TRACEME = 0x0
  1756. QNX4_SUPER_MAGIC = 0x2f
  1757. QNX6_SUPER_MAGIC = 0x68191122
  1758. RAMFS_MAGIC = 0x858458f6
  1759. RDTGROUP_SUPER_MAGIC = 0x7655821
  1760. REISERFS_SUPER_MAGIC = 0x52654973
  1761. RENAME_EXCHANGE = 0x2
  1762. RENAME_NOREPLACE = 0x1
  1763. RENAME_WHITEOUT = 0x4
  1764. RLIMIT_AS = 0x9
  1765. RLIMIT_CORE = 0x4
  1766. RLIMIT_CPU = 0x0
  1767. RLIMIT_DATA = 0x2
  1768. RLIMIT_FSIZE = 0x1
  1769. RLIMIT_LOCKS = 0xa
  1770. RLIMIT_MEMLOCK = 0x8
  1771. RLIMIT_MSGQUEUE = 0xc
  1772. RLIMIT_NICE = 0xd
  1773. RLIMIT_NOFILE = 0x7
  1774. RLIMIT_NPROC = 0x6
  1775. RLIMIT_RSS = 0x5
  1776. RLIMIT_RTPRIO = 0xe
  1777. RLIMIT_RTTIME = 0xf
  1778. RLIMIT_SIGPENDING = 0xb
  1779. RLIMIT_STACK = 0x3
  1780. RLIM_INFINITY = 0xffffffffffffffff
  1781. RNDADDENTROPY = 0x40085203
  1782. RNDADDTOENTCNT = 0x40045201
  1783. RNDCLEARPOOL = 0x5206
  1784. RNDGETENTCNT = 0x80045200
  1785. RNDGETPOOL = 0x80085202
  1786. RNDRESEEDCRNG = 0x5207
  1787. RNDZAPENTCNT = 0x5204
  1788. RTAX_ADVMSS = 0x8
  1789. RTAX_CC_ALGO = 0x10
  1790. RTAX_CWND = 0x7
  1791. RTAX_FASTOPEN_NO_COOKIE = 0x11
  1792. RTAX_FEATURES = 0xc
  1793. RTAX_FEATURE_ALLFRAG = 0x8
  1794. RTAX_FEATURE_ECN = 0x1
  1795. RTAX_FEATURE_MASK = 0xf
  1796. RTAX_FEATURE_SACK = 0x2
  1797. RTAX_FEATURE_TIMESTAMP = 0x4
  1798. RTAX_HOPLIMIT = 0xa
  1799. RTAX_INITCWND = 0xb
  1800. RTAX_INITRWND = 0xe
  1801. RTAX_LOCK = 0x1
  1802. RTAX_MAX = 0x11
  1803. RTAX_MTU = 0x2
  1804. RTAX_QUICKACK = 0xf
  1805. RTAX_REORDERING = 0x9
  1806. RTAX_RTO_MIN = 0xd
  1807. RTAX_RTT = 0x4
  1808. RTAX_RTTVAR = 0x5
  1809. RTAX_SSTHRESH = 0x6
  1810. RTAX_UNSPEC = 0x0
  1811. RTAX_WINDOW = 0x3
  1812. RTA_ALIGNTO = 0x4
  1813. RTA_MAX = 0x1e
  1814. RTCF_DIRECTSRC = 0x4000000
  1815. RTCF_DOREDIRECT = 0x1000000
  1816. RTCF_LOG = 0x2000000
  1817. RTCF_MASQ = 0x400000
  1818. RTCF_NAT = 0x800000
  1819. RTCF_VALVE = 0x200000
  1820. RTC_AF = 0x20
  1821. RTC_AIE_OFF = 0x7002
  1822. RTC_AIE_ON = 0x7001
  1823. RTC_ALM_READ = 0x80247008
  1824. RTC_ALM_SET = 0x40247007
  1825. RTC_EPOCH_READ = 0x8004700d
  1826. RTC_EPOCH_SET = 0x4004700e
  1827. RTC_IRQF = 0x80
  1828. RTC_IRQP_READ = 0x8004700b
  1829. RTC_IRQP_SET = 0x4004700c
  1830. RTC_MAX_FREQ = 0x2000
  1831. RTC_PF = 0x40
  1832. RTC_PIE_OFF = 0x7006
  1833. RTC_PIE_ON = 0x7005
  1834. RTC_PLL_GET = 0x801c7011
  1835. RTC_PLL_SET = 0x401c7012
  1836. RTC_RD_TIME = 0x80247009
  1837. RTC_SET_TIME = 0x4024700a
  1838. RTC_UF = 0x10
  1839. RTC_UIE_OFF = 0x7004
  1840. RTC_UIE_ON = 0x7003
  1841. RTC_VL_CLR = 0x7014
  1842. RTC_VL_READ = 0x80047013
  1843. RTC_WIE_OFF = 0x7010
  1844. RTC_WIE_ON = 0x700f
  1845. RTC_WKALM_RD = 0x80287010
  1846. RTC_WKALM_SET = 0x4028700f
  1847. RTF_ADDRCLASSMASK = 0xf8000000
  1848. RTF_ADDRCONF = 0x40000
  1849. RTF_ALLONLINK = 0x20000
  1850. RTF_BROADCAST = 0x10000000
  1851. RTF_CACHE = 0x1000000
  1852. RTF_DEFAULT = 0x10000
  1853. RTF_DYNAMIC = 0x10
  1854. RTF_FLOW = 0x2000000
  1855. RTF_GATEWAY = 0x2
  1856. RTF_HOST = 0x4
  1857. RTF_INTERFACE = 0x40000000
  1858. RTF_IRTT = 0x100
  1859. RTF_LINKRT = 0x100000
  1860. RTF_LOCAL = 0x80000000
  1861. RTF_MODIFIED = 0x20
  1862. RTF_MSS = 0x40
  1863. RTF_MTU = 0x40
  1864. RTF_MULTICAST = 0x20000000
  1865. RTF_NAT = 0x8000000
  1866. RTF_NOFORWARD = 0x1000
  1867. RTF_NONEXTHOP = 0x200000
  1868. RTF_NOPMTUDISC = 0x4000
  1869. RTF_POLICY = 0x4000000
  1870. RTF_REINSTATE = 0x8
  1871. RTF_REJECT = 0x200
  1872. RTF_STATIC = 0x400
  1873. RTF_THROW = 0x2000
  1874. RTF_UP = 0x1
  1875. RTF_WINDOW = 0x80
  1876. RTF_XRESOLVE = 0x800
  1877. RTM_BASE = 0x10
  1878. RTM_DELACTION = 0x31
  1879. RTM_DELADDR = 0x15
  1880. RTM_DELADDRLABEL = 0x49
  1881. RTM_DELCHAIN = 0x65
  1882. RTM_DELLINK = 0x11
  1883. RTM_DELMDB = 0x55
  1884. RTM_DELNEIGH = 0x1d
  1885. RTM_DELNETCONF = 0x51
  1886. RTM_DELNEXTHOP = 0x69
  1887. RTM_DELNSID = 0x59
  1888. RTM_DELQDISC = 0x25
  1889. RTM_DELROUTE = 0x19
  1890. RTM_DELRULE = 0x21
  1891. RTM_DELTCLASS = 0x29
  1892. RTM_DELTFILTER = 0x2d
  1893. RTM_F_CLONED = 0x200
  1894. RTM_F_EQUALIZE = 0x400
  1895. RTM_F_FIB_MATCH = 0x2000
  1896. RTM_F_LOOKUP_TABLE = 0x1000
  1897. RTM_F_NOTIFY = 0x100
  1898. RTM_F_PREFIX = 0x800
  1899. RTM_GETACTION = 0x32
  1900. RTM_GETADDR = 0x16
  1901. RTM_GETADDRLABEL = 0x4a
  1902. RTM_GETANYCAST = 0x3e
  1903. RTM_GETCHAIN = 0x66
  1904. RTM_GETDCB = 0x4e
  1905. RTM_GETLINK = 0x12
  1906. RTM_GETMDB = 0x56
  1907. RTM_GETMULTICAST = 0x3a
  1908. RTM_GETNEIGH = 0x1e
  1909. RTM_GETNEIGHTBL = 0x42
  1910. RTM_GETNETCONF = 0x52
  1911. RTM_GETNEXTHOP = 0x6a
  1912. RTM_GETNSID = 0x5a
  1913. RTM_GETQDISC = 0x26
  1914. RTM_GETROUTE = 0x1a
  1915. RTM_GETRULE = 0x22
  1916. RTM_GETSTATS = 0x5e
  1917. RTM_GETTCLASS = 0x2a
  1918. RTM_GETTFILTER = 0x2e
  1919. RTM_MAX = 0x6b
  1920. RTM_NEWACTION = 0x30
  1921. RTM_NEWADDR = 0x14
  1922. RTM_NEWADDRLABEL = 0x48
  1923. RTM_NEWCACHEREPORT = 0x60
  1924. RTM_NEWCHAIN = 0x64
  1925. RTM_NEWLINK = 0x10
  1926. RTM_NEWMDB = 0x54
  1927. RTM_NEWNDUSEROPT = 0x44
  1928. RTM_NEWNEIGH = 0x1c
  1929. RTM_NEWNEIGHTBL = 0x40
  1930. RTM_NEWNETCONF = 0x50
  1931. RTM_NEWNEXTHOP = 0x68
  1932. RTM_NEWNSID = 0x58
  1933. RTM_NEWPREFIX = 0x34
  1934. RTM_NEWQDISC = 0x24
  1935. RTM_NEWROUTE = 0x18
  1936. RTM_NEWRULE = 0x20
  1937. RTM_NEWSTATS = 0x5c
  1938. RTM_NEWTCLASS = 0x28
  1939. RTM_NEWTFILTER = 0x2c
  1940. RTM_NR_FAMILIES = 0x17
  1941. RTM_NR_MSGTYPES = 0x5c
  1942. RTM_SETDCB = 0x4f
  1943. RTM_SETLINK = 0x13
  1944. RTM_SETNEIGHTBL = 0x43
  1945. RTNH_ALIGNTO = 0x4
  1946. RTNH_COMPARE_MASK = 0x19
  1947. RTNH_F_DEAD = 0x1
  1948. RTNH_F_LINKDOWN = 0x10
  1949. RTNH_F_OFFLOAD = 0x8
  1950. RTNH_F_ONLINK = 0x4
  1951. RTNH_F_PERVASIVE = 0x2
  1952. RTNH_F_UNRESOLVED = 0x20
  1953. RTN_MAX = 0xb
  1954. RTPROT_BABEL = 0x2a
  1955. RTPROT_BGP = 0xba
  1956. RTPROT_BIRD = 0xc
  1957. RTPROT_BOOT = 0x3
  1958. RTPROT_DHCP = 0x10
  1959. RTPROT_DNROUTED = 0xd
  1960. RTPROT_EIGRP = 0xc0
  1961. RTPROT_GATED = 0x8
  1962. RTPROT_ISIS = 0xbb
  1963. RTPROT_KERNEL = 0x2
  1964. RTPROT_MROUTED = 0x11
  1965. RTPROT_MRT = 0xa
  1966. RTPROT_NTK = 0xf
  1967. RTPROT_OSPF = 0xbc
  1968. RTPROT_RA = 0x9
  1969. RTPROT_REDIRECT = 0x1
  1970. RTPROT_RIP = 0xbd
  1971. RTPROT_STATIC = 0x4
  1972. RTPROT_UNSPEC = 0x0
  1973. RTPROT_XORP = 0xe
  1974. RTPROT_ZEBRA = 0xb
  1975. RT_CLASS_DEFAULT = 0xfd
  1976. RT_CLASS_LOCAL = 0xff
  1977. RT_CLASS_MAIN = 0xfe
  1978. RT_CLASS_MAX = 0xff
  1979. RT_CLASS_UNSPEC = 0x0
  1980. RUSAGE_CHILDREN = -0x1
  1981. RUSAGE_SELF = 0x0
  1982. RUSAGE_THREAD = 0x1
  1983. SCM_CREDENTIALS = 0x2
  1984. SCM_RIGHTS = 0x1
  1985. SCM_TIMESTAMP = 0x1d
  1986. SCM_TIMESTAMPING = 0x25
  1987. SCM_TIMESTAMPING_OPT_STATS = 0x36
  1988. SCM_TIMESTAMPING_PKTINFO = 0x3a
  1989. SCM_TIMESTAMPNS = 0x23
  1990. SCM_TXTIME = 0x3d
  1991. SCM_WIFI_STATUS = 0x29
  1992. SC_LOG_FLUSH = 0x100000
  1993. SECCOMP_MODE_DISABLED = 0x0
  1994. SECCOMP_MODE_FILTER = 0x2
  1995. SECCOMP_MODE_STRICT = 0x1
  1996. SECURITYFS_MAGIC = 0x73636673
  1997. SELINUX_MAGIC = 0xf97cff8c
  1998. SFD_CLOEXEC = 0x80000
  1999. SFD_NONBLOCK = 0x800
  2000. SHUT_RD = 0x0
  2001. SHUT_RDWR = 0x2
  2002. SHUT_WR = 0x1
  2003. SIOCADDDLCI = 0x8980
  2004. SIOCADDMULTI = 0x8931
  2005. SIOCADDRT = 0x890b
  2006. SIOCATMARK = 0x8905
  2007. SIOCBONDCHANGEACTIVE = 0x8995
  2008. SIOCBONDENSLAVE = 0x8990
  2009. SIOCBONDINFOQUERY = 0x8994
  2010. SIOCBONDRELEASE = 0x8991
  2011. SIOCBONDSETHWADDR = 0x8992
  2012. SIOCBONDSLAVEINFOQUERY = 0x8993
  2013. SIOCBRADDBR = 0x89a0
  2014. SIOCBRADDIF = 0x89a2
  2015. SIOCBRDELBR = 0x89a1
  2016. SIOCBRDELIF = 0x89a3
  2017. SIOCDARP = 0x8953
  2018. SIOCDELDLCI = 0x8981
  2019. SIOCDELMULTI = 0x8932
  2020. SIOCDELRT = 0x890c
  2021. SIOCDEVPRIVATE = 0x89f0
  2022. SIOCDIFADDR = 0x8936
  2023. SIOCDRARP = 0x8960
  2024. SIOCETHTOOL = 0x8946
  2025. SIOCGARP = 0x8954
  2026. SIOCGETLINKNAME = 0x89e0
  2027. SIOCGETNODEID = 0x89e1
  2028. SIOCGHWTSTAMP = 0x89b1
  2029. SIOCGIFADDR = 0x8915
  2030. SIOCGIFBR = 0x8940
  2031. SIOCGIFBRDADDR = 0x8919
  2032. SIOCGIFCONF = 0x8912
  2033. SIOCGIFCOUNT = 0x8938
  2034. SIOCGIFDSTADDR = 0x8917
  2035. SIOCGIFENCAP = 0x8925
  2036. SIOCGIFFLAGS = 0x8913
  2037. SIOCGIFHWADDR = 0x8927
  2038. SIOCGIFINDEX = 0x8933
  2039. SIOCGIFMAP = 0x8970
  2040. SIOCGIFMEM = 0x891f
  2041. SIOCGIFMETRIC = 0x891d
  2042. SIOCGIFMTU = 0x8921
  2043. SIOCGIFNAME = 0x8910
  2044. SIOCGIFNETMASK = 0x891b
  2045. SIOCGIFPFLAGS = 0x8935
  2046. SIOCGIFSLAVE = 0x8929
  2047. SIOCGIFTXQLEN = 0x8942
  2048. SIOCGIFVLAN = 0x8982
  2049. SIOCGMIIPHY = 0x8947
  2050. SIOCGMIIREG = 0x8948
  2051. SIOCGPGRP = 0x8904
  2052. SIOCGPPPCSTATS = 0x89f2
  2053. SIOCGPPPSTATS = 0x89f0
  2054. SIOCGPPPVER = 0x89f1
  2055. SIOCGRARP = 0x8961
  2056. SIOCGSKNS = 0x894c
  2057. SIOCGSTAMP = 0x8906
  2058. SIOCGSTAMPNS = 0x8907
  2059. SIOCGSTAMPNS_NEW = 0x80108907
  2060. SIOCGSTAMPNS_OLD = 0x8907
  2061. SIOCGSTAMP_NEW = 0x80108906
  2062. SIOCGSTAMP_OLD = 0x8906
  2063. SIOCINQ = 0x541b
  2064. SIOCOUTQ = 0x5411
  2065. SIOCOUTQNSD = 0x894b
  2066. SIOCPROTOPRIVATE = 0x89e0
  2067. SIOCRTMSG = 0x890d
  2068. SIOCSARP = 0x8955
  2069. SIOCSHWTSTAMP = 0x89b0
  2070. SIOCSIFADDR = 0x8916
  2071. SIOCSIFBR = 0x8941
  2072. SIOCSIFBRDADDR = 0x891a
  2073. SIOCSIFDSTADDR = 0x8918
  2074. SIOCSIFENCAP = 0x8926
  2075. SIOCSIFFLAGS = 0x8914
  2076. SIOCSIFHWADDR = 0x8924
  2077. SIOCSIFHWBROADCAST = 0x8937
  2078. SIOCSIFLINK = 0x8911
  2079. SIOCSIFMAP = 0x8971
  2080. SIOCSIFMEM = 0x8920
  2081. SIOCSIFMETRIC = 0x891e
  2082. SIOCSIFMTU = 0x8922
  2083. SIOCSIFNAME = 0x8923
  2084. SIOCSIFNETMASK = 0x891c
  2085. SIOCSIFPFLAGS = 0x8934
  2086. SIOCSIFSLAVE = 0x8930
  2087. SIOCSIFTXQLEN = 0x8943
  2088. SIOCSIFVLAN = 0x8983
  2089. SIOCSMIIREG = 0x8949
  2090. SIOCSPGRP = 0x8902
  2091. SIOCSRARP = 0x8962
  2092. SIOCWANDEV = 0x894a
  2093. SMACK_MAGIC = 0x43415d53
  2094. SMART_AUTOSAVE = 0xd2
  2095. SMART_AUTO_OFFLINE = 0xdb
  2096. SMART_DISABLE = 0xd9
  2097. SMART_ENABLE = 0xd8
  2098. SMART_HCYL_PASS = 0xc2
  2099. SMART_IMMEDIATE_OFFLINE = 0xd4
  2100. SMART_LCYL_PASS = 0x4f
  2101. SMART_READ_LOG_SECTOR = 0xd5
  2102. SMART_READ_THRESHOLDS = 0xd1
  2103. SMART_READ_VALUES = 0xd0
  2104. SMART_SAVE = 0xd3
  2105. SMART_STATUS = 0xda
  2106. SMART_WRITE_LOG_SECTOR = 0xd6
  2107. SMART_WRITE_THRESHOLDS = 0xd7
  2108. SMB_SUPER_MAGIC = 0x517b
  2109. SOCKFS_MAGIC = 0x534f434b
  2110. SOCK_CLOEXEC = 0x80000
  2111. SOCK_DCCP = 0x6
  2112. SOCK_DGRAM = 0x2
  2113. SOCK_IOC_TYPE = 0x89
  2114. SOCK_NONBLOCK = 0x800
  2115. SOCK_PACKET = 0xa
  2116. SOCK_RAW = 0x3
  2117. SOCK_RDM = 0x4
  2118. SOCK_SEQPACKET = 0x5
  2119. SOCK_STREAM = 0x1
  2120. SOL_AAL = 0x109
  2121. SOL_ALG = 0x117
  2122. SOL_ATM = 0x108
  2123. SOL_CAIF = 0x116
  2124. SOL_CAN_BASE = 0x64
  2125. SOL_DCCP = 0x10d
  2126. SOL_DECNET = 0x105
  2127. SOL_ICMPV6 = 0x3a
  2128. SOL_IP = 0x0
  2129. SOL_IPV6 = 0x29
  2130. SOL_IRDA = 0x10a
  2131. SOL_IUCV = 0x115
  2132. SOL_KCM = 0x119
  2133. SOL_LLC = 0x10c
  2134. SOL_NETBEUI = 0x10b
  2135. SOL_NETLINK = 0x10e
  2136. SOL_NFC = 0x118
  2137. SOL_PACKET = 0x107
  2138. SOL_PNPIPE = 0x113
  2139. SOL_PPPOL2TP = 0x111
  2140. SOL_RAW = 0xff
  2141. SOL_RDS = 0x114
  2142. SOL_RXRPC = 0x110
  2143. SOL_SOCKET = 0x1
  2144. SOL_TCP = 0x6
  2145. SOL_TIPC = 0x10f
  2146. SOL_TLS = 0x11a
  2147. SOL_X25 = 0x106
  2148. SOL_XDP = 0x11b
  2149. SOMAXCONN = 0x80
  2150. SO_ACCEPTCONN = 0x1e
  2151. SO_ATTACH_BPF = 0x32
  2152. SO_ATTACH_FILTER = 0x1a
  2153. SO_ATTACH_REUSEPORT_CBPF = 0x33
  2154. SO_ATTACH_REUSEPORT_EBPF = 0x34
  2155. SO_BINDTODEVICE = 0x19
  2156. SO_BINDTOIFINDEX = 0x3e
  2157. SO_BPF_EXTENSIONS = 0x30
  2158. SO_BROADCAST = 0x6
  2159. SO_BSDCOMPAT = 0xe
  2160. SO_BUSY_POLL = 0x2e
  2161. SO_CNX_ADVICE = 0x35
  2162. SO_COOKIE = 0x39
  2163. SO_DEBUG = 0x1
  2164. SO_DETACH_BPF = 0x1b
  2165. SO_DETACH_FILTER = 0x1b
  2166. SO_DETACH_REUSEPORT_BPF = 0x44
  2167. SO_DOMAIN = 0x27
  2168. SO_DONTROUTE = 0x5
  2169. SO_EE_CODE_TXTIME_INVALID_PARAM = 0x1
  2170. SO_EE_CODE_TXTIME_MISSED = 0x2
  2171. SO_EE_CODE_ZEROCOPY_COPIED = 0x1
  2172. SO_EE_ORIGIN_ICMP = 0x2
  2173. SO_EE_ORIGIN_ICMP6 = 0x3
  2174. SO_EE_ORIGIN_LOCAL = 0x1
  2175. SO_EE_ORIGIN_NONE = 0x0
  2176. SO_EE_ORIGIN_TIMESTAMPING = 0x4
  2177. SO_EE_ORIGIN_TXSTATUS = 0x4
  2178. SO_EE_ORIGIN_TXTIME = 0x6
  2179. SO_EE_ORIGIN_ZEROCOPY = 0x5
  2180. SO_ERROR = 0x4
  2181. SO_GET_FILTER = 0x1a
  2182. SO_INCOMING_CPU = 0x31
  2183. SO_INCOMING_NAPI_ID = 0x38
  2184. SO_KEEPALIVE = 0x9
  2185. SO_LINGER = 0xd
  2186. SO_LOCK_FILTER = 0x2c
  2187. SO_MARK = 0x24
  2188. SO_MAX_PACING_RATE = 0x2f
  2189. SO_MEMINFO = 0x37
  2190. SO_NOFCS = 0x2b
  2191. SO_NO_CHECK = 0xb
  2192. SO_OOBINLINE = 0xa
  2193. SO_PASSCRED = 0x10
  2194. SO_PASSSEC = 0x22
  2195. SO_PEEK_OFF = 0x2a
  2196. SO_PEERCRED = 0x11
  2197. SO_PEERGROUPS = 0x3b
  2198. SO_PEERNAME = 0x1c
  2199. SO_PEERSEC = 0x1f
  2200. SO_PRIORITY = 0xc
  2201. SO_PROTOCOL = 0x26
  2202. SO_RCVBUF = 0x8
  2203. SO_RCVBUFFORCE = 0x21
  2204. SO_RCVLOWAT = 0x12
  2205. SO_RCVTIMEO = 0x14
  2206. SO_RCVTIMEO_NEW = 0x42
  2207. SO_RCVTIMEO_OLD = 0x14
  2208. SO_REUSEADDR = 0x2
  2209. SO_REUSEPORT = 0xf
  2210. SO_RXQ_OVFL = 0x28
  2211. SO_SECURITY_AUTHENTICATION = 0x16
  2212. SO_SECURITY_ENCRYPTION_NETWORK = 0x18
  2213. SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
  2214. SO_SELECT_ERR_QUEUE = 0x2d
  2215. SO_SNDBUF = 0x7
  2216. SO_SNDBUFFORCE = 0x20
  2217. SO_SNDLOWAT = 0x13
  2218. SO_SNDTIMEO = 0x15
  2219. SO_SNDTIMEO_NEW = 0x43
  2220. SO_SNDTIMEO_OLD = 0x15
  2221. SO_TIMESTAMP = 0x1d
  2222. SO_TIMESTAMPING = 0x25
  2223. SO_TIMESTAMPING_NEW = 0x41
  2224. SO_TIMESTAMPING_OLD = 0x25
  2225. SO_TIMESTAMPNS = 0x23
  2226. SO_TIMESTAMPNS_NEW = 0x40
  2227. SO_TIMESTAMPNS_OLD = 0x23
  2228. SO_TIMESTAMP_NEW = 0x3f
  2229. SO_TIMESTAMP_OLD = 0x1d
  2230. SO_TXTIME = 0x3d
  2231. SO_TYPE = 0x3
  2232. SO_VM_SOCKETS_BUFFER_MAX_SIZE = 0x2
  2233. SO_VM_SOCKETS_BUFFER_MIN_SIZE = 0x1
  2234. SO_VM_SOCKETS_BUFFER_SIZE = 0x0
  2235. SO_VM_SOCKETS_CONNECT_TIMEOUT = 0x6
  2236. SO_VM_SOCKETS_NONBLOCK_TXRX = 0x7
  2237. SO_VM_SOCKETS_PEER_HOST_VM_ID = 0x3
  2238. SO_VM_SOCKETS_TRUSTED = 0x5
  2239. SO_WIFI_STATUS = 0x29
  2240. SO_ZEROCOPY = 0x3c
  2241. SPLICE_F_GIFT = 0x8
  2242. SPLICE_F_MORE = 0x4
  2243. SPLICE_F_MOVE = 0x1
  2244. SPLICE_F_NONBLOCK = 0x2
  2245. SQUASHFS_MAGIC = 0x73717368
  2246. STACK_END_MAGIC = 0x57ac6e9d
  2247. STATX_ALL = 0xfff
  2248. STATX_ATIME = 0x20
  2249. STATX_ATTR_APPEND = 0x20
  2250. STATX_ATTR_AUTOMOUNT = 0x1000
  2251. STATX_ATTR_COMPRESSED = 0x4
  2252. STATX_ATTR_ENCRYPTED = 0x800
  2253. STATX_ATTR_IMMUTABLE = 0x10
  2254. STATX_ATTR_NODUMP = 0x40
  2255. STATX_BASIC_STATS = 0x7ff
  2256. STATX_BLOCKS = 0x400
  2257. STATX_BTIME = 0x800
  2258. STATX_CTIME = 0x80
  2259. STATX_GID = 0x10
  2260. STATX_INO = 0x100
  2261. STATX_MODE = 0x2
  2262. STATX_MTIME = 0x40
  2263. STATX_NLINK = 0x4
  2264. STATX_SIZE = 0x200
  2265. STATX_TYPE = 0x1
  2266. STATX_UID = 0x8
  2267. STATX__RESERVED = 0x80000000
  2268. SYNC_FILE_RANGE_WAIT_AFTER = 0x4
  2269. SYNC_FILE_RANGE_WAIT_BEFORE = 0x1
  2270. SYNC_FILE_RANGE_WRITE = 0x2
  2271. SYNC_FILE_RANGE_WRITE_AND_WAIT = 0x7
  2272. SYSFS_MAGIC = 0x62656572
  2273. S_BLKSIZE = 0x200
  2274. S_IEXEC = 0x40
  2275. S_IFBLK = 0x6000
  2276. S_IFCHR = 0x2000
  2277. S_IFDIR = 0x4000
  2278. S_IFIFO = 0x1000
  2279. S_IFLNK = 0xa000
  2280. S_IFMT = 0xf000
  2281. S_IFREG = 0x8000
  2282. S_IFSOCK = 0xc000
  2283. S_IREAD = 0x100
  2284. S_IRGRP = 0x20
  2285. S_IROTH = 0x4
  2286. S_IRUSR = 0x100
  2287. S_IRWXG = 0x38
  2288. S_IRWXO = 0x7
  2289. S_IRWXU = 0x1c0
  2290. S_ISGID = 0x400
  2291. S_ISUID = 0x800
  2292. S_ISVTX = 0x200
  2293. S_IWGRP = 0x10
  2294. S_IWOTH = 0x2
  2295. S_IWRITE = 0x80
  2296. S_IWUSR = 0x80
  2297. S_IXGRP = 0x8
  2298. S_IXOTH = 0x1
  2299. S_IXUSR = 0x40
  2300. TAB0 = 0x0
  2301. TAB1 = 0x800
  2302. TAB2 = 0x1000
  2303. TAB3 = 0x1800
  2304. TABDLY = 0x1800
  2305. TASKSTATS_CMD_ATTR_MAX = 0x4
  2306. TASKSTATS_CMD_MAX = 0x2
  2307. TASKSTATS_GENL_NAME = "TASKSTATS"
  2308. TASKSTATS_GENL_VERSION = 0x1
  2309. TASKSTATS_TYPE_MAX = 0x6
  2310. TASKSTATS_VERSION = 0x9
  2311. TCFLSH = 0x540b
  2312. TCGETA = 0x5405
  2313. TCGETS = 0x5401
  2314. TCGETS2 = 0x802c542a
  2315. TCGETX = 0x5432
  2316. TCIFLUSH = 0x0
  2317. TCIOFF = 0x2
  2318. TCIOFLUSH = 0x2
  2319. TCION = 0x3
  2320. TCOFLUSH = 0x1
  2321. TCOOFF = 0x0
  2322. TCOON = 0x1
  2323. TCP_BPF_IW = 0x3e9
  2324. TCP_BPF_SNDCWND_CLAMP = 0x3ea
  2325. TCP_CC_INFO = 0x1a
  2326. TCP_CM_INQ = 0x24
  2327. TCP_CONGESTION = 0xd
  2328. TCP_COOKIE_IN_ALWAYS = 0x1
  2329. TCP_COOKIE_MAX = 0x10
  2330. TCP_COOKIE_MIN = 0x8
  2331. TCP_COOKIE_OUT_NEVER = 0x2
  2332. TCP_COOKIE_PAIR_SIZE = 0x20
  2333. TCP_COOKIE_TRANSACTIONS = 0xf
  2334. TCP_CORK = 0x3
  2335. TCP_DEFER_ACCEPT = 0x9
  2336. TCP_FASTOPEN = 0x17
  2337. TCP_FASTOPEN_CONNECT = 0x1e
  2338. TCP_FASTOPEN_KEY = 0x21
  2339. TCP_FASTOPEN_NO_COOKIE = 0x22
  2340. TCP_INFO = 0xb
  2341. TCP_INQ = 0x24
  2342. TCP_KEEPCNT = 0x6
  2343. TCP_KEEPIDLE = 0x4
  2344. TCP_KEEPINTVL = 0x5
  2345. TCP_LINGER2 = 0x8
  2346. TCP_MAXSEG = 0x2
  2347. TCP_MAXWIN = 0xffff
  2348. TCP_MAX_WINSHIFT = 0xe
  2349. TCP_MD5SIG = 0xe
  2350. TCP_MD5SIG_EXT = 0x20
  2351. TCP_MD5SIG_FLAG_PREFIX = 0x1
  2352. TCP_MD5SIG_MAXKEYLEN = 0x50
  2353. TCP_MSS = 0x200
  2354. TCP_MSS_DEFAULT = 0x218
  2355. TCP_MSS_DESIRED = 0x4c4
  2356. TCP_NODELAY = 0x1
  2357. TCP_NOTSENT_LOWAT = 0x19
  2358. TCP_QUEUE_SEQ = 0x15
  2359. TCP_QUICKACK = 0xc
  2360. TCP_REPAIR = 0x13
  2361. TCP_REPAIR_OFF = 0x0
  2362. TCP_REPAIR_OFF_NO_WP = -0x1
  2363. TCP_REPAIR_ON = 0x1
  2364. TCP_REPAIR_OPTIONS = 0x16
  2365. TCP_REPAIR_QUEUE = 0x14
  2366. TCP_REPAIR_WINDOW = 0x1d
  2367. TCP_SAVED_SYN = 0x1c
  2368. TCP_SAVE_SYN = 0x1b
  2369. TCP_SYNCNT = 0x7
  2370. TCP_S_DATA_IN = 0x4
  2371. TCP_S_DATA_OUT = 0x8
  2372. TCP_THIN_DUPACK = 0x11
  2373. TCP_THIN_LINEAR_TIMEOUTS = 0x10
  2374. TCP_TIMESTAMP = 0x18
  2375. TCP_ULP = 0x1f
  2376. TCP_USER_TIMEOUT = 0x12
  2377. TCP_WINDOW_CLAMP = 0xa
  2378. TCP_ZEROCOPY_RECEIVE = 0x23
  2379. TCSAFLUSH = 0x2
  2380. TCSBRK = 0x5409
  2381. TCSBRKP = 0x5425
  2382. TCSETA = 0x5406
  2383. TCSETAF = 0x5408
  2384. TCSETAW = 0x5407
  2385. TCSETS = 0x5402
  2386. TCSETS2 = 0x402c542b
  2387. TCSETSF = 0x5404
  2388. TCSETSF2 = 0x402c542d
  2389. TCSETSW = 0x5403
  2390. TCSETSW2 = 0x402c542c
  2391. TCSETX = 0x5433
  2392. TCSETXF = 0x5434
  2393. TCSETXW = 0x5435
  2394. TCXONC = 0x540a
  2395. TIMER_ABSTIME = 0x1
  2396. TIOCCBRK = 0x5428
  2397. TIOCCONS = 0x541d
  2398. TIOCEXCL = 0x540c
  2399. TIOCGDEV = 0x80045432
  2400. TIOCGETD = 0x5424
  2401. TIOCGEXCL = 0x80045440
  2402. TIOCGICOUNT = 0x545d
  2403. TIOCGISO7816 = 0x80285442
  2404. TIOCGLCKTRMIOS = 0x5456
  2405. TIOCGPGRP = 0x540f
  2406. TIOCGPKT = 0x80045438
  2407. TIOCGPTLCK = 0x80045439
  2408. TIOCGPTN = 0x80045430
  2409. TIOCGPTPEER = 0x5441
  2410. TIOCGRS485 = 0x542e
  2411. TIOCGSERIAL = 0x541e
  2412. TIOCGSID = 0x5429
  2413. TIOCGSOFTCAR = 0x5419
  2414. TIOCGWINSZ = 0x5413
  2415. TIOCINQ = 0x541b
  2416. TIOCLINUX = 0x541c
  2417. TIOCMBIC = 0x5417
  2418. TIOCMBIS = 0x5416
  2419. TIOCMGET = 0x5415
  2420. TIOCMIWAIT = 0x545c
  2421. TIOCMSET = 0x5418
  2422. TIOCM_CAR = 0x40
  2423. TIOCM_CD = 0x40
  2424. TIOCM_CTS = 0x20
  2425. TIOCM_DSR = 0x100
  2426. TIOCM_DTR = 0x2
  2427. TIOCM_LE = 0x1
  2428. TIOCM_RI = 0x80
  2429. TIOCM_RNG = 0x80
  2430. TIOCM_RTS = 0x4
  2431. TIOCM_SR = 0x10
  2432. TIOCM_ST = 0x8
  2433. TIOCNOTTY = 0x5422
  2434. TIOCNXCL = 0x540d
  2435. TIOCOUTQ = 0x5411
  2436. TIOCPKT = 0x5420
  2437. TIOCPKT_DATA = 0x0
  2438. TIOCPKT_DOSTOP = 0x20
  2439. TIOCPKT_FLUSHREAD = 0x1
  2440. TIOCPKT_FLUSHWRITE = 0x2
  2441. TIOCPKT_IOCTL = 0x40
  2442. TIOCPKT_NOSTOP = 0x10
  2443. TIOCPKT_START = 0x8
  2444. TIOCPKT_STOP = 0x4
  2445. TIOCSBRK = 0x5427
  2446. TIOCSCTTY = 0x540e
  2447. TIOCSERCONFIG = 0x5453
  2448. TIOCSERGETLSR = 0x5459
  2449. TIOCSERGETMULTI = 0x545a
  2450. TIOCSERGSTRUCT = 0x5458
  2451. TIOCSERGWILD = 0x5454
  2452. TIOCSERSETMULTI = 0x545b
  2453. TIOCSERSWILD = 0x5455
  2454. TIOCSER_TEMT = 0x1
  2455. TIOCSETD = 0x5423
  2456. TIOCSIG = 0x40045436
  2457. TIOCSISO7816 = 0xc0285443
  2458. TIOCSLCKTRMIOS = 0x5457
  2459. TIOCSPGRP = 0x5410
  2460. TIOCSPTLCK = 0x40045431
  2461. TIOCSRS485 = 0x542f
  2462. TIOCSSERIAL = 0x541f
  2463. TIOCSSOFTCAR = 0x541a
  2464. TIOCSTI = 0x5412
  2465. TIOCSWINSZ = 0x5414
  2466. TIOCVHANGUP = 0x5437
  2467. TIPC_ADDR_ID = 0x3
  2468. TIPC_ADDR_MCAST = 0x1
  2469. TIPC_ADDR_NAME = 0x2
  2470. TIPC_ADDR_NAMESEQ = 0x1
  2471. TIPC_CFG_SRV = 0x0
  2472. TIPC_CLUSTER_BITS = 0xc
  2473. TIPC_CLUSTER_MASK = 0xfff000
  2474. TIPC_CLUSTER_OFFSET = 0xc
  2475. TIPC_CLUSTER_SIZE = 0xfff
  2476. TIPC_CONN_SHUTDOWN = 0x5
  2477. TIPC_CONN_TIMEOUT = 0x82
  2478. TIPC_CRITICAL_IMPORTANCE = 0x3
  2479. TIPC_DESTNAME = 0x3
  2480. TIPC_DEST_DROPPABLE = 0x81
  2481. TIPC_ERRINFO = 0x1
  2482. TIPC_ERR_NO_NAME = 0x1
  2483. TIPC_ERR_NO_NODE = 0x3
  2484. TIPC_ERR_NO_PORT = 0x2
  2485. TIPC_ERR_OVERLOAD = 0x4
  2486. TIPC_GROUP_JOIN = 0x87
  2487. TIPC_GROUP_LEAVE = 0x88
  2488. TIPC_GROUP_LOOPBACK = 0x1
  2489. TIPC_GROUP_MEMBER_EVTS = 0x2
  2490. TIPC_HIGH_IMPORTANCE = 0x2
  2491. TIPC_IMPORTANCE = 0x7f
  2492. TIPC_LINK_STATE = 0x2
  2493. TIPC_LOW_IMPORTANCE = 0x0
  2494. TIPC_MAX_BEARER_NAME = 0x20
  2495. TIPC_MAX_IF_NAME = 0x10
  2496. TIPC_MAX_LINK_NAME = 0x44
  2497. TIPC_MAX_MEDIA_NAME = 0x10
  2498. TIPC_MAX_USER_MSG_SIZE = 0x101d0
  2499. TIPC_MCAST_BROADCAST = 0x85
  2500. TIPC_MCAST_REPLICAST = 0x86
  2501. TIPC_MEDIUM_IMPORTANCE = 0x1
  2502. TIPC_NODEID_LEN = 0x10
  2503. TIPC_NODE_BITS = 0xc
  2504. TIPC_NODE_MASK = 0xfff
  2505. TIPC_NODE_OFFSET = 0x0
  2506. TIPC_NODE_RECVQ_DEPTH = 0x83
  2507. TIPC_NODE_SIZE = 0xfff
  2508. TIPC_NODE_STATE = 0x0
  2509. TIPC_OK = 0x0
  2510. TIPC_PUBLISHED = 0x1
  2511. TIPC_RESERVED_TYPES = 0x40
  2512. TIPC_RETDATA = 0x2
  2513. TIPC_SERVICE_ADDR = 0x2
  2514. TIPC_SERVICE_RANGE = 0x1
  2515. TIPC_SOCKET_ADDR = 0x3
  2516. TIPC_SOCK_RECVQ_DEPTH = 0x84
  2517. TIPC_SOCK_RECVQ_USED = 0x89
  2518. TIPC_SRC_DROPPABLE = 0x80
  2519. TIPC_SUBSCR_TIMEOUT = 0x3
  2520. TIPC_SUB_CANCEL = 0x4
  2521. TIPC_SUB_PORTS = 0x1
  2522. TIPC_SUB_SERVICE = 0x2
  2523. TIPC_TOP_SRV = 0x1
  2524. TIPC_WAIT_FOREVER = 0xffffffff
  2525. TIPC_WITHDRAWN = 0x2
  2526. TIPC_ZONE_BITS = 0x8
  2527. TIPC_ZONE_CLUSTER_MASK = 0xfffff000
  2528. TIPC_ZONE_MASK = 0xff000000
  2529. TIPC_ZONE_OFFSET = 0x18
  2530. TIPC_ZONE_SCOPE = 0x1
  2531. TIPC_ZONE_SIZE = 0xff
  2532. TMPFS_MAGIC = 0x1021994
  2533. TOSTOP = 0x100
  2534. TPACKET_ALIGNMENT = 0x10
  2535. TPACKET_HDRLEN = 0x34
  2536. TP_STATUS_AVAILABLE = 0x0
  2537. TP_STATUS_BLK_TMO = 0x20
  2538. TP_STATUS_COPY = 0x2
  2539. TP_STATUS_CSUMNOTREADY = 0x8
  2540. TP_STATUS_CSUM_VALID = 0x80
  2541. TP_STATUS_KERNEL = 0x0
  2542. TP_STATUS_LOSING = 0x4
  2543. TP_STATUS_SENDING = 0x2
  2544. TP_STATUS_SEND_REQUEST = 0x1
  2545. TP_STATUS_TS_RAW_HARDWARE = 0x80000000
  2546. TP_STATUS_TS_SOFTWARE = 0x20000000
  2547. TP_STATUS_TS_SYS_HARDWARE = 0x40000000
  2548. TP_STATUS_USER = 0x1
  2549. TP_STATUS_VLAN_TPID_VALID = 0x40
  2550. TP_STATUS_VLAN_VALID = 0x10
  2551. TP_STATUS_WRONG_FORMAT = 0x4
  2552. TRACEFS_MAGIC = 0x74726163
  2553. TS_COMM_LEN = 0x20
  2554. TUNATTACHFILTER = 0x400854d5
  2555. TUNDETACHFILTER = 0x400854d6
  2556. TUNGETDEVNETNS = 0x54e3
  2557. TUNGETFEATURES = 0x800454cf
  2558. TUNGETFILTER = 0x800854db
  2559. TUNGETIFF = 0x800454d2
  2560. TUNGETSNDBUF = 0x800454d3
  2561. TUNGETVNETBE = 0x800454df
  2562. TUNGETVNETHDRSZ = 0x800454d7
  2563. TUNGETVNETLE = 0x800454dd
  2564. TUNSETCARRIER = 0x400454e2
  2565. TUNSETDEBUG = 0x400454c9
  2566. TUNSETFILTEREBPF = 0x800454e1
  2567. TUNSETGROUP = 0x400454ce
  2568. TUNSETIFF = 0x400454ca
  2569. TUNSETIFINDEX = 0x400454da
  2570. TUNSETLINK = 0x400454cd
  2571. TUNSETNOCSUM = 0x400454c8
  2572. TUNSETOFFLOAD = 0x400454d0
  2573. TUNSETOWNER = 0x400454cc
  2574. TUNSETPERSIST = 0x400454cb
  2575. TUNSETQUEUE = 0x400454d9
  2576. TUNSETSNDBUF = 0x400454d4
  2577. TUNSETSTEERINGEBPF = 0x800454e0
  2578. TUNSETTXFILTER = 0x400454d1
  2579. TUNSETVNETBE = 0x400454de
  2580. TUNSETVNETHDRSZ = 0x400454d8
  2581. TUNSETVNETLE = 0x400454dc
  2582. UBI_IOCATT = 0x40186f40
  2583. UBI_IOCDET = 0x40046f41
  2584. UBI_IOCEBCH = 0x40044f02
  2585. UBI_IOCEBER = 0x40044f01
  2586. UBI_IOCEBISMAP = 0x80044f05
  2587. UBI_IOCEBMAP = 0x40084f03
  2588. UBI_IOCEBUNMAP = 0x40044f04
  2589. UBI_IOCMKVOL = 0x40986f00
  2590. UBI_IOCRMVOL = 0x40046f01
  2591. UBI_IOCRNVOL = 0x51106f03
  2592. UBI_IOCRPEB = 0x40046f04
  2593. UBI_IOCRSVOL = 0x400c6f02
  2594. UBI_IOCSETVOLPROP = 0x40104f06
  2595. UBI_IOCSPEB = 0x40046f05
  2596. UBI_IOCVOLCRBLK = 0x40804f07
  2597. UBI_IOCVOLRMBLK = 0x4f08
  2598. UBI_IOCVOLUP = 0x40084f00
  2599. UDF_SUPER_MAGIC = 0x15013346
  2600. UMOUNT_NOFOLLOW = 0x8
  2601. USBDEVICE_SUPER_MAGIC = 0x9fa2
  2602. UTIME_NOW = 0x3fffffff
  2603. UTIME_OMIT = 0x3ffffffe
  2604. V9FS_MAGIC = 0x1021997
  2605. VDISCARD = 0xd
  2606. VEOF = 0x4
  2607. VEOL = 0xb
  2608. VEOL2 = 0x10
  2609. VERASE = 0x2
  2610. VINTR = 0x0
  2611. VKILL = 0x3
  2612. VLNEXT = 0xf
  2613. VMADDR_CID_ANY = 0xffffffff
  2614. VMADDR_CID_HOST = 0x2
  2615. VMADDR_CID_HYPERVISOR = 0x0
  2616. VMADDR_CID_RESERVED = 0x1
  2617. VMADDR_PORT_ANY = 0xffffffff
  2618. VMIN = 0x6
  2619. VM_SOCKETS_INVALID_VERSION = 0xffffffff
  2620. VQUIT = 0x1
  2621. VREPRINT = 0xc
  2622. VSTART = 0x8
  2623. VSTOP = 0x9
  2624. VSUSP = 0xa
  2625. VSWTC = 0x7
  2626. VT0 = 0x0
  2627. VT1 = 0x4000
  2628. VTDLY = 0x4000
  2629. VTIME = 0x5
  2630. VWERASE = 0xe
  2631. WALL = 0x40000000
  2632. WCLONE = 0x80000000
  2633. WCONTINUED = 0x8
  2634. WDIOC_GETBOOTSTATUS = 0x80045702
  2635. WDIOC_GETPRETIMEOUT = 0x80045709
  2636. WDIOC_GETSTATUS = 0x80045701
  2637. WDIOC_GETSUPPORT = 0x80285700
  2638. WDIOC_GETTEMP = 0x80045703
  2639. WDIOC_GETTIMELEFT = 0x8004570a
  2640. WDIOC_GETTIMEOUT = 0x80045707
  2641. WDIOC_KEEPALIVE = 0x80045705
  2642. WDIOC_SETOPTIONS = 0x80045704
  2643. WDIOC_SETPRETIMEOUT = 0xc0045708
  2644. WDIOC_SETTIMEOUT = 0xc0045706
  2645. WEXITED = 0x4
  2646. WIN_ACKMEDIACHANGE = 0xdb
  2647. WIN_CHECKPOWERMODE1 = 0xe5
  2648. WIN_CHECKPOWERMODE2 = 0x98
  2649. WIN_DEVICE_RESET = 0x8
  2650. WIN_DIAGNOSE = 0x90
  2651. WIN_DOORLOCK = 0xde
  2652. WIN_DOORUNLOCK = 0xdf
  2653. WIN_DOWNLOAD_MICROCODE = 0x92
  2654. WIN_FLUSH_CACHE = 0xe7
  2655. WIN_FLUSH_CACHE_EXT = 0xea
  2656. WIN_FORMAT = 0x50
  2657. WIN_GETMEDIASTATUS = 0xda
  2658. WIN_IDENTIFY = 0xec
  2659. WIN_IDENTIFY_DMA = 0xee
  2660. WIN_IDLEIMMEDIATE = 0xe1
  2661. WIN_INIT = 0x60
  2662. WIN_MEDIAEJECT = 0xed
  2663. WIN_MULTREAD = 0xc4
  2664. WIN_MULTREAD_EXT = 0x29
  2665. WIN_MULTWRITE = 0xc5
  2666. WIN_MULTWRITE_EXT = 0x39
  2667. WIN_NOP = 0x0
  2668. WIN_PACKETCMD = 0xa0
  2669. WIN_PIDENTIFY = 0xa1
  2670. WIN_POSTBOOT = 0xdc
  2671. WIN_PREBOOT = 0xdd
  2672. WIN_QUEUED_SERVICE = 0xa2
  2673. WIN_READ = 0x20
  2674. WIN_READDMA = 0xc8
  2675. WIN_READDMA_EXT = 0x25
  2676. WIN_READDMA_ONCE = 0xc9
  2677. WIN_READDMA_QUEUED = 0xc7
  2678. WIN_READDMA_QUEUED_EXT = 0x26
  2679. WIN_READ_BUFFER = 0xe4
  2680. WIN_READ_EXT = 0x24
  2681. WIN_READ_LONG = 0x22
  2682. WIN_READ_LONG_ONCE = 0x23
  2683. WIN_READ_NATIVE_MAX = 0xf8
  2684. WIN_READ_NATIVE_MAX_EXT = 0x27
  2685. WIN_READ_ONCE = 0x21
  2686. WIN_RECAL = 0x10
  2687. WIN_RESTORE = 0x10
  2688. WIN_SECURITY_DISABLE = 0xf6
  2689. WIN_SECURITY_ERASE_PREPARE = 0xf3
  2690. WIN_SECURITY_ERASE_UNIT = 0xf4
  2691. WIN_SECURITY_FREEZE_LOCK = 0xf5
  2692. WIN_SECURITY_SET_PASS = 0xf1
  2693. WIN_SECURITY_UNLOCK = 0xf2
  2694. WIN_SEEK = 0x70
  2695. WIN_SETFEATURES = 0xef
  2696. WIN_SETIDLE1 = 0xe3
  2697. WIN_SETIDLE2 = 0x97
  2698. WIN_SETMULT = 0xc6
  2699. WIN_SET_MAX = 0xf9
  2700. WIN_SET_MAX_EXT = 0x37
  2701. WIN_SLEEPNOW1 = 0xe6
  2702. WIN_SLEEPNOW2 = 0x99
  2703. WIN_SMART = 0xb0
  2704. WIN_SPECIFY = 0x91
  2705. WIN_SRST = 0x8
  2706. WIN_STANDBY = 0xe2
  2707. WIN_STANDBY2 = 0x96
  2708. WIN_STANDBYNOW1 = 0xe0
  2709. WIN_STANDBYNOW2 = 0x94
  2710. WIN_VERIFY = 0x40
  2711. WIN_VERIFY_EXT = 0x42
  2712. WIN_VERIFY_ONCE = 0x41
  2713. WIN_WRITE = 0x30
  2714. WIN_WRITEDMA = 0xca
  2715. WIN_WRITEDMA_EXT = 0x35
  2716. WIN_WRITEDMA_ONCE = 0xcb
  2717. WIN_WRITEDMA_QUEUED = 0xcc
  2718. WIN_WRITEDMA_QUEUED_EXT = 0x36
  2719. WIN_WRITE_BUFFER = 0xe8
  2720. WIN_WRITE_EXT = 0x34
  2721. WIN_WRITE_LONG = 0x32
  2722. WIN_WRITE_LONG_ONCE = 0x33
  2723. WIN_WRITE_ONCE = 0x31
  2724. WIN_WRITE_SAME = 0xe9
  2725. WIN_WRITE_VERIFY = 0x3c
  2726. WNOHANG = 0x1
  2727. WNOTHREAD = 0x20000000
  2728. WNOWAIT = 0x1000000
  2729. WORDSIZE = 0x20
  2730. WSTOPPED = 0x2
  2731. WUNTRACED = 0x2
  2732. X86_FXSR_MAGIC = 0x0
  2733. XATTR_CREATE = 0x1
  2734. XATTR_REPLACE = 0x2
  2735. XCASE = 0x4
  2736. XDP_COPY = 0x2
  2737. XDP_FLAGS_DRV_MODE = 0x4
  2738. XDP_FLAGS_HW_MODE = 0x8
  2739. XDP_FLAGS_MASK = 0xf
  2740. XDP_FLAGS_MODES = 0xe
  2741. XDP_FLAGS_SKB_MODE = 0x2
  2742. XDP_FLAGS_UPDATE_IF_NOEXIST = 0x1
  2743. XDP_MMAP_OFFSETS = 0x1
  2744. XDP_OPTIONS = 0x8
  2745. XDP_OPTIONS_ZEROCOPY = 0x1
  2746. XDP_PACKET_HEADROOM = 0x100
  2747. XDP_PGOFF_RX_RING = 0x0
  2748. XDP_PGOFF_TX_RING = 0x80000000
  2749. XDP_RX_RING = 0x2
  2750. XDP_SHARED_UMEM = 0x1
  2751. XDP_STATISTICS = 0x7
  2752. XDP_TX_RING = 0x3
  2753. XDP_UMEM_COMPLETION_RING = 0x6
  2754. XDP_UMEM_FILL_RING = 0x5
  2755. XDP_UMEM_PGOFF_COMPLETION_RING = 0x180000000
  2756. XDP_UMEM_PGOFF_FILL_RING = 0x100000000
  2757. XDP_UMEM_REG = 0x4
  2758. XDP_ZEROCOPY = 0x4
  2759. XENFS_SUPER_MAGIC = 0xabba1974
  2760. XFS_SUPER_MAGIC = 0x58465342
  2761. XTABS = 0x1800
  2762. Z3FOLD_MAGIC = 0x33
  2763. ZSMALLOC_MAGIC = 0x58295829
  2764. )
  2765. // Errors
  2766. const (
  2767. E2BIG = syscall.Errno(0x7)
  2768. EACCES = syscall.Errno(0xd)
  2769. EADDRINUSE = syscall.Errno(0x62)
  2770. EADDRNOTAVAIL = syscall.Errno(0x63)
  2771. EADV = syscall.Errno(0x44)
  2772. EAFNOSUPPORT = syscall.Errno(0x61)
  2773. EAGAIN = syscall.Errno(0xb)
  2774. EALREADY = syscall.Errno(0x72)
  2775. EBADE = syscall.Errno(0x34)
  2776. EBADF = syscall.Errno(0x9)
  2777. EBADFD = syscall.Errno(0x4d)
  2778. EBADMSG = syscall.Errno(0x4a)
  2779. EBADR = syscall.Errno(0x35)
  2780. EBADRQC = syscall.Errno(0x38)
  2781. EBADSLT = syscall.Errno(0x39)
  2782. EBFONT = syscall.Errno(0x3b)
  2783. EBUSY = syscall.Errno(0x10)
  2784. ECANCELED = syscall.Errno(0x7d)
  2785. ECHILD = syscall.Errno(0xa)
  2786. ECHRNG = syscall.Errno(0x2c)
  2787. ECOMM = syscall.Errno(0x46)
  2788. ECONNABORTED = syscall.Errno(0x67)
  2789. ECONNREFUSED = syscall.Errno(0x6f)
  2790. ECONNRESET = syscall.Errno(0x68)
  2791. EDEADLK = syscall.Errno(0x23)
  2792. EDEADLOCK = syscall.Errno(0x23)
  2793. EDESTADDRREQ = syscall.Errno(0x59)
  2794. EDOM = syscall.Errno(0x21)
  2795. EDOTDOT = syscall.Errno(0x49)
  2796. EDQUOT = syscall.Errno(0x7a)
  2797. EEXIST = syscall.Errno(0x11)
  2798. EFAULT = syscall.Errno(0xe)
  2799. EFBIG = syscall.Errno(0x1b)
  2800. EHOSTDOWN = syscall.Errno(0x70)
  2801. EHOSTUNREACH = syscall.Errno(0x71)
  2802. EHWPOISON = syscall.Errno(0x85)
  2803. EIDRM = syscall.Errno(0x2b)
  2804. EILSEQ = syscall.Errno(0x54)
  2805. EINPROGRESS = syscall.Errno(0x73)
  2806. EINTR = syscall.Errno(0x4)
  2807. EINVAL = syscall.Errno(0x16)
  2808. EIO = syscall.Errno(0x5)
  2809. EISCONN = syscall.Errno(0x6a)
  2810. EISDIR = syscall.Errno(0x15)
  2811. EISNAM = syscall.Errno(0x78)
  2812. EKEYEXPIRED = syscall.Errno(0x7f)
  2813. EKEYREJECTED = syscall.Errno(0x81)
  2814. EKEYREVOKED = syscall.Errno(0x80)
  2815. EL2HLT = syscall.Errno(0x33)
  2816. EL2NSYNC = syscall.Errno(0x2d)
  2817. EL3HLT = syscall.Errno(0x2e)
  2818. EL3RST = syscall.Errno(0x2f)
  2819. ELIBACC = syscall.Errno(0x4f)
  2820. ELIBBAD = syscall.Errno(0x50)
  2821. ELIBEXEC = syscall.Errno(0x53)
  2822. ELIBMAX = syscall.Errno(0x52)
  2823. ELIBSCN = syscall.Errno(0x51)
  2824. ELNRNG = syscall.Errno(0x30)
  2825. ELOOP = syscall.Errno(0x28)
  2826. EMEDIUMTYPE = syscall.Errno(0x7c)
  2827. EMFILE = syscall.Errno(0x18)
  2828. EMLINK = syscall.Errno(0x1f)
  2829. EMSGSIZE = syscall.Errno(0x5a)
  2830. EMULTIHOP = syscall.Errno(0x48)
  2831. ENAMETOOLONG = syscall.Errno(0x24)
  2832. ENAVAIL = syscall.Errno(0x77)
  2833. ENETDOWN = syscall.Errno(0x64)
  2834. ENETRESET = syscall.Errno(0x66)
  2835. ENETUNREACH = syscall.Errno(0x65)
  2836. ENFILE = syscall.Errno(0x17)
  2837. ENOANO = syscall.Errno(0x37)
  2838. ENOBUFS = syscall.Errno(0x69)
  2839. ENOCSI = syscall.Errno(0x32)
  2840. ENODATA = syscall.Errno(0x3d)
  2841. ENODEV = syscall.Errno(0x13)
  2842. ENOENT = syscall.Errno(0x2)
  2843. ENOEXEC = syscall.Errno(0x8)
  2844. ENOKEY = syscall.Errno(0x7e)
  2845. ENOLCK = syscall.Errno(0x25)
  2846. ENOLINK = syscall.Errno(0x43)
  2847. ENOMEDIUM = syscall.Errno(0x7b)
  2848. ENOMEM = syscall.Errno(0xc)
  2849. ENOMSG = syscall.Errno(0x2a)
  2850. ENONET = syscall.Errno(0x40)
  2851. ENOPKG = syscall.Errno(0x41)
  2852. ENOPROTOOPT = syscall.Errno(0x5c)
  2853. ENOSPC = syscall.Errno(0x1c)
  2854. ENOSR = syscall.Errno(0x3f)
  2855. ENOSTR = syscall.Errno(0x3c)
  2856. ENOSYS = syscall.Errno(0x26)
  2857. ENOTBLK = syscall.Errno(0xf)
  2858. ENOTCONN = syscall.Errno(0x6b)
  2859. ENOTDIR = syscall.Errno(0x14)
  2860. ENOTEMPTY = syscall.Errno(0x27)
  2861. ENOTNAM = syscall.Errno(0x76)
  2862. ENOTRECOVERABLE = syscall.Errno(0x83)
  2863. ENOTSOCK = syscall.Errno(0x58)
  2864. ENOTSUP = syscall.Errno(0x5f)
  2865. ENOTTY = syscall.Errno(0x19)
  2866. ENOTUNIQ = syscall.Errno(0x4c)
  2867. ENXIO = syscall.Errno(0x6)
  2868. EOPNOTSUPP = syscall.Errno(0x5f)
  2869. EOVERFLOW = syscall.Errno(0x4b)
  2870. EOWNERDEAD = syscall.Errno(0x82)
  2871. EPERM = syscall.Errno(0x1)
  2872. EPFNOSUPPORT = syscall.Errno(0x60)
  2873. EPIPE = syscall.Errno(0x20)
  2874. EPROTO = syscall.Errno(0x47)
  2875. EPROTONOSUPPORT = syscall.Errno(0x5d)
  2876. EPROTOTYPE = syscall.Errno(0x5b)
  2877. ERANGE = syscall.Errno(0x22)
  2878. EREMCHG = syscall.Errno(0x4e)
  2879. EREMOTE = syscall.Errno(0x42)
  2880. EREMOTEIO = syscall.Errno(0x79)
  2881. ERESTART = syscall.Errno(0x55)
  2882. ERFKILL = syscall.Errno(0x84)
  2883. EROFS = syscall.Errno(0x1e)
  2884. ESHUTDOWN = syscall.Errno(0x6c)
  2885. ESOCKTNOSUPPORT = syscall.Errno(0x5e)
  2886. ESPIPE = syscall.Errno(0x1d)
  2887. ESRCH = syscall.Errno(0x3)
  2888. ESRMNT = syscall.Errno(0x45)
  2889. ESTALE = syscall.Errno(0x74)
  2890. ESTRPIPE = syscall.Errno(0x56)
  2891. ETIME = syscall.Errno(0x3e)
  2892. ETIMEDOUT = syscall.Errno(0x6e)
  2893. ETOOMANYREFS = syscall.Errno(0x6d)
  2894. ETXTBSY = syscall.Errno(0x1a)
  2895. EUCLEAN = syscall.Errno(0x75)
  2896. EUNATCH = syscall.Errno(0x31)
  2897. EUSERS = syscall.Errno(0x57)
  2898. EWOULDBLOCK = syscall.Errno(0xb)
  2899. EXDEV = syscall.Errno(0x12)
  2900. EXFULL = syscall.Errno(0x36)
  2901. )
  2902. // Signals
  2903. const (
  2904. SIGABRT = syscall.Signal(0x6)
  2905. SIGALRM = syscall.Signal(0xe)
  2906. SIGBUS = syscall.Signal(0x7)
  2907. SIGCHLD = syscall.Signal(0x11)
  2908. SIGCLD = syscall.Signal(0x11)
  2909. SIGCONT = syscall.Signal(0x12)
  2910. SIGFPE = syscall.Signal(0x8)
  2911. SIGHUP = syscall.Signal(0x1)
  2912. SIGILL = syscall.Signal(0x4)
  2913. SIGINT = syscall.Signal(0x2)
  2914. SIGIO = syscall.Signal(0x1d)
  2915. SIGIOT = syscall.Signal(0x6)
  2916. SIGKILL = syscall.Signal(0x9)
  2917. SIGPIPE = syscall.Signal(0xd)
  2918. SIGPOLL = syscall.Signal(0x1d)
  2919. SIGPROF = syscall.Signal(0x1b)
  2920. SIGPWR = syscall.Signal(0x1e)
  2921. SIGQUIT = syscall.Signal(0x3)
  2922. SIGSEGV = syscall.Signal(0xb)
  2923. SIGSTKFLT = syscall.Signal(0x10)
  2924. SIGSTOP = syscall.Signal(0x13)
  2925. SIGSYS = syscall.Signal(0x1f)
  2926. SIGTERM = syscall.Signal(0xf)
  2927. SIGTRAP = syscall.Signal(0x5)
  2928. SIGTSTP = syscall.Signal(0x14)
  2929. SIGTTIN = syscall.Signal(0x15)
  2930. SIGTTOU = syscall.Signal(0x16)
  2931. SIGURG = syscall.Signal(0x17)
  2932. SIGUSR1 = syscall.Signal(0xa)
  2933. SIGUSR2 = syscall.Signal(0xc)
  2934. SIGVTALRM = syscall.Signal(0x1a)
  2935. SIGWINCH = syscall.Signal(0x1c)
  2936. SIGXCPU = syscall.Signal(0x18)
  2937. SIGXFSZ = syscall.Signal(0x19)
  2938. )
  2939. // Error table
  2940. var errorList = [...]struct {
  2941. num syscall.Errno
  2942. name string
  2943. desc string
  2944. }{
  2945. {1, "EPERM", "operation not permitted"},
  2946. {2, "ENOENT", "no such file or directory"},
  2947. {3, "ESRCH", "no such process"},
  2948. {4, "EINTR", "interrupted system call"},
  2949. {5, "EIO", "input/output error"},
  2950. {6, "ENXIO", "no such device or address"},
  2951. {7, "E2BIG", "argument list too long"},
  2952. {8, "ENOEXEC", "exec format error"},
  2953. {9, "EBADF", "bad file descriptor"},
  2954. {10, "ECHILD", "no child processes"},
  2955. {11, "EAGAIN", "resource temporarily unavailable"},
  2956. {12, "ENOMEM", "cannot allocate memory"},
  2957. {13, "EACCES", "permission denied"},
  2958. {14, "EFAULT", "bad address"},
  2959. {15, "ENOTBLK", "block device required"},
  2960. {16, "EBUSY", "device or resource busy"},
  2961. {17, "EEXIST", "file exists"},
  2962. {18, "EXDEV", "invalid cross-device link"},
  2963. {19, "ENODEV", "no such device"},
  2964. {20, "ENOTDIR", "not a directory"},
  2965. {21, "EISDIR", "is a directory"},
  2966. {22, "EINVAL", "invalid argument"},
  2967. {23, "ENFILE", "too many open files in system"},
  2968. {24, "EMFILE", "too many open files"},
  2969. {25, "ENOTTY", "inappropriate ioctl for device"},
  2970. {26, "ETXTBSY", "text file busy"},
  2971. {27, "EFBIG", "file too large"},
  2972. {28, "ENOSPC", "no space left on device"},
  2973. {29, "ESPIPE", "illegal seek"},
  2974. {30, "EROFS", "read-only file system"},
  2975. {31, "EMLINK", "too many links"},
  2976. {32, "EPIPE", "broken pipe"},
  2977. {33, "EDOM", "numerical argument out of domain"},
  2978. {34, "ERANGE", "numerical result out of range"},
  2979. {35, "EDEADLK", "resource deadlock avoided"},
  2980. {36, "ENAMETOOLONG", "file name too long"},
  2981. {37, "ENOLCK", "no locks available"},
  2982. {38, "ENOSYS", "function not implemented"},
  2983. {39, "ENOTEMPTY", "directory not empty"},
  2984. {40, "ELOOP", "too many levels of symbolic links"},
  2985. {42, "ENOMSG", "no message of desired type"},
  2986. {43, "EIDRM", "identifier removed"},
  2987. {44, "ECHRNG", "channel number out of range"},
  2988. {45, "EL2NSYNC", "level 2 not synchronized"},
  2989. {46, "EL3HLT", "level 3 halted"},
  2990. {47, "EL3RST", "level 3 reset"},
  2991. {48, "ELNRNG", "link number out of range"},
  2992. {49, "EUNATCH", "protocol driver not attached"},
  2993. {50, "ENOCSI", "no CSI structure available"},
  2994. {51, "EL2HLT", "level 2 halted"},
  2995. {52, "EBADE", "invalid exchange"},
  2996. {53, "EBADR", "invalid request descriptor"},
  2997. {54, "EXFULL", "exchange full"},
  2998. {55, "ENOANO", "no anode"},
  2999. {56, "EBADRQC", "invalid request code"},
  3000. {57, "EBADSLT", "invalid slot"},
  3001. {59, "EBFONT", "bad font file format"},
  3002. {60, "ENOSTR", "device not a stream"},
  3003. {61, "ENODATA", "no data available"},
  3004. {62, "ETIME", "timer expired"},
  3005. {63, "ENOSR", "out of streams resources"},
  3006. {64, "ENONET", "machine is not on the network"},
  3007. {65, "ENOPKG", "package not installed"},
  3008. {66, "EREMOTE", "object is remote"},
  3009. {67, "ENOLINK", "link has been severed"},
  3010. {68, "EADV", "advertise error"},
  3011. {69, "ESRMNT", "srmount error"},
  3012. {70, "ECOMM", "communication error on send"},
  3013. {71, "EPROTO", "protocol error"},
  3014. {72, "EMULTIHOP", "multihop attempted"},
  3015. {73, "EDOTDOT", "RFS specific error"},
  3016. {74, "EBADMSG", "bad message"},
  3017. {75, "EOVERFLOW", "value too large for defined data type"},
  3018. {76, "ENOTUNIQ", "name not unique on network"},
  3019. {77, "EBADFD", "file descriptor in bad state"},
  3020. {78, "EREMCHG", "remote address changed"},
  3021. {79, "ELIBACC", "can not access a needed shared library"},
  3022. {80, "ELIBBAD", "accessing a corrupted shared library"},
  3023. {81, "ELIBSCN", ".lib section in a.out corrupted"},
  3024. {82, "ELIBMAX", "attempting to link in too many shared libraries"},
  3025. {83, "ELIBEXEC", "cannot exec a shared library directly"},
  3026. {84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
  3027. {85, "ERESTART", "interrupted system call should be restarted"},
  3028. {86, "ESTRPIPE", "streams pipe error"},
  3029. {87, "EUSERS", "too many users"},
  3030. {88, "ENOTSOCK", "socket operation on non-socket"},
  3031. {89, "EDESTADDRREQ", "destination address required"},
  3032. {90, "EMSGSIZE", "message too long"},
  3033. {91, "EPROTOTYPE", "protocol wrong type for socket"},
  3034. {92, "ENOPROTOOPT", "protocol not available"},
  3035. {93, "EPROTONOSUPPORT", "protocol not supported"},
  3036. {94, "ESOCKTNOSUPPORT", "socket type not supported"},
  3037. {95, "ENOTSUP", "operation not supported"},
  3038. {96, "EPFNOSUPPORT", "protocol family not supported"},
  3039. {97, "EAFNOSUPPORT", "address family not supported by protocol"},
  3040. {98, "EADDRINUSE", "address already in use"},
  3041. {99, "EADDRNOTAVAIL", "cannot assign requested address"},
  3042. {100, "ENETDOWN", "network is down"},
  3043. {101, "ENETUNREACH", "network is unreachable"},
  3044. {102, "ENETRESET", "network dropped connection on reset"},
  3045. {103, "ECONNABORTED", "software caused connection abort"},
  3046. {104, "ECONNRESET", "connection reset by peer"},
  3047. {105, "ENOBUFS", "no buffer space available"},
  3048. {106, "EISCONN", "transport endpoint is already connected"},
  3049. {107, "ENOTCONN", "transport endpoint is not connected"},
  3050. {108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
  3051. {109, "ETOOMANYREFS", "too many references: cannot splice"},
  3052. {110, "ETIMEDOUT", "connection timed out"},
  3053. {111, "ECONNREFUSED", "connection refused"},
  3054. {112, "EHOSTDOWN", "host is down"},
  3055. {113, "EHOSTUNREACH", "no route to host"},
  3056. {114, "EALREADY", "operation already in progress"},
  3057. {115, "EINPROGRESS", "operation now in progress"},
  3058. {116, "ESTALE", "stale file handle"},
  3059. {117, "EUCLEAN", "structure needs cleaning"},
  3060. {118, "ENOTNAM", "not a XENIX named type file"},
  3061. {119, "ENAVAIL", "no XENIX semaphores available"},
  3062. {120, "EISNAM", "is a named type file"},
  3063. {121, "EREMOTEIO", "remote I/O error"},
  3064. {122, "EDQUOT", "disk quota exceeded"},
  3065. {123, "ENOMEDIUM", "no medium found"},
  3066. {124, "EMEDIUMTYPE", "wrong medium type"},
  3067. {125, "ECANCELED", "operation canceled"},
  3068. {126, "ENOKEY", "required key not available"},
  3069. {127, "EKEYEXPIRED", "key has expired"},
  3070. {128, "EKEYREVOKED", "key has been revoked"},
  3071. {129, "EKEYREJECTED", "key was rejected by service"},
  3072. {130, "EOWNERDEAD", "owner died"},
  3073. {131, "ENOTRECOVERABLE", "state not recoverable"},
  3074. {132, "ERFKILL", "operation not possible due to RF-kill"},
  3075. {133, "EHWPOISON", "memory page has hardware error"},
  3076. }
  3077. // Signal table
  3078. var signalList = [...]struct {
  3079. num syscall.Signal
  3080. name string
  3081. desc string
  3082. }{
  3083. {1, "SIGHUP", "hangup"},
  3084. {2, "SIGINT", "interrupt"},
  3085. {3, "SIGQUIT", "quit"},
  3086. {4, "SIGILL", "illegal instruction"},
  3087. {5, "SIGTRAP", "trace/breakpoint trap"},
  3088. {6, "SIGABRT", "aborted"},
  3089. {7, "SIGBUS", "bus error"},
  3090. {8, "SIGFPE", "floating point exception"},
  3091. {9, "SIGKILL", "killed"},
  3092. {10, "SIGUSR1", "user defined signal 1"},
  3093. {11, "SIGSEGV", "segmentation fault"},
  3094. {12, "SIGUSR2", "user defined signal 2"},
  3095. {13, "SIGPIPE", "broken pipe"},
  3096. {14, "SIGALRM", "alarm clock"},
  3097. {15, "SIGTERM", "terminated"},
  3098. {16, "SIGSTKFLT", "stack fault"},
  3099. {17, "SIGCHLD", "child exited"},
  3100. {18, "SIGCONT", "continued"},
  3101. {19, "SIGSTOP", "stopped (signal)"},
  3102. {20, "SIGTSTP", "stopped"},
  3103. {21, "SIGTTIN", "stopped (tty input)"},
  3104. {22, "SIGTTOU", "stopped (tty output)"},
  3105. {23, "SIGURG", "urgent I/O condition"},
  3106. {24, "SIGXCPU", "CPU time limit exceeded"},
  3107. {25, "SIGXFSZ", "file size limit exceeded"},
  3108. {26, "SIGVTALRM", "virtual timer expired"},
  3109. {27, "SIGPROF", "profiling timer expired"},
  3110. {28, "SIGWINCH", "window changed"},
  3111. {29, "SIGIO", "I/O possible"},
  3112. {30, "SIGPWR", "power failure"},
  3113. {31, "SIGSYS", "bad system call"},
  3114. }