Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

cpu_arm.go 2.1KB

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
il y a 4 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Copyright 2018 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package cpu
  5. const cacheLineSize = 32
  6. // HWCAP/HWCAP2 bits.
  7. // These are specific to Linux.
  8. const (
  9. hwcap_SWP = 1 << 0
  10. hwcap_HALF = 1 << 1
  11. hwcap_THUMB = 1 << 2
  12. hwcap_26BIT = 1 << 3
  13. hwcap_FAST_MULT = 1 << 4
  14. hwcap_FPA = 1 << 5
  15. hwcap_VFP = 1 << 6
  16. hwcap_EDSP = 1 << 7
  17. hwcap_JAVA = 1 << 8
  18. hwcap_IWMMXT = 1 << 9
  19. hwcap_CRUNCH = 1 << 10
  20. hwcap_THUMBEE = 1 << 11
  21. hwcap_NEON = 1 << 12
  22. hwcap_VFPv3 = 1 << 13
  23. hwcap_VFPv3D16 = 1 << 14
  24. hwcap_TLS = 1 << 15
  25. hwcap_VFPv4 = 1 << 16
  26. hwcap_IDIVA = 1 << 17
  27. hwcap_IDIVT = 1 << 18
  28. hwcap_VFPD32 = 1 << 19
  29. hwcap_LPAE = 1 << 20
  30. hwcap_EVTSTRM = 1 << 21
  31. hwcap2_AES = 1 << 0
  32. hwcap2_PMULL = 1 << 1
  33. hwcap2_SHA1 = 1 << 2
  34. hwcap2_SHA2 = 1 << 3
  35. hwcap2_CRC32 = 1 << 4
  36. )
  37. func initOptions() {
  38. options = []option{
  39. {Name: "pmull", Feature: &ARM.HasPMULL},
  40. {Name: "sha1", Feature: &ARM.HasSHA1},
  41. {Name: "sha2", Feature: &ARM.HasSHA2},
  42. {Name: "swp", Feature: &ARM.HasSWP},
  43. {Name: "thumb", Feature: &ARM.HasTHUMB},
  44. {Name: "thumbee", Feature: &ARM.HasTHUMBEE},
  45. {Name: "tls", Feature: &ARM.HasTLS},
  46. {Name: "vfp", Feature: &ARM.HasVFP},
  47. {Name: "vfpd32", Feature: &ARM.HasVFPD32},
  48. {Name: "vfpv3", Feature: &ARM.HasVFPv3},
  49. {Name: "vfpv3d16", Feature: &ARM.HasVFPv3D16},
  50. {Name: "vfpv4", Feature: &ARM.HasVFPv4},
  51. {Name: "half", Feature: &ARM.HasHALF},
  52. {Name: "26bit", Feature: &ARM.Has26BIT},
  53. {Name: "fastmul", Feature: &ARM.HasFASTMUL},
  54. {Name: "fpa", Feature: &ARM.HasFPA},
  55. {Name: "edsp", Feature: &ARM.HasEDSP},
  56. {Name: "java", Feature: &ARM.HasJAVA},
  57. {Name: "iwmmxt", Feature: &ARM.HasIWMMXT},
  58. {Name: "crunch", Feature: &ARM.HasCRUNCH},
  59. {Name: "neon", Feature: &ARM.HasNEON},
  60. {Name: "idivt", Feature: &ARM.HasIDIVT},
  61. {Name: "idiva", Feature: &ARM.HasIDIVA},
  62. {Name: "lpae", Feature: &ARM.HasLPAE},
  63. {Name: "evtstrm", Feature: &ARM.HasEVTSTRM},
  64. {Name: "aes", Feature: &ARM.HasAES},
  65. {Name: "crc32", Feature: &ARM.HasCRC32},
  66. }
  67. }