⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 security.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: security.so,v 10.17 2002/02/04 17:52:38 bostic Exp $])m4_ref_title(Environment, Security, @security, env/region, env/encrypt)m4_p([dnlThe following are security issues that should be considered when writingm4_db applications:])m4_tagbeginm4_tag(Database environment permissions, [dnlThe directory used as the m4_db database environment should have itspermissions set to ensure that files in the environment are not accessibleto users without appropriate permissions.  Applications that add to theuser's permissions (for example, UNIX setuid or setgid applications),must be carefully checked to not permit illegal use of those permissionssuch as general file access in the environment directory.])m4_tag(Environment variables, [dnlSetting the m4_ref(DB_USE_ENVIRON) and m4_ref(DB_USE_ENVIRON_ROOT) flagsand allowing the use of environment variables during file naming can bedangerous.  Setting those flags in m4_db applications with additionalpermissions (for example, UNIX setuid or setgid applications) couldpotentially allow users to read and write databases to which they wouldnot normally have access.])m4_tag(File permissions, [dnlBy default, m4_db always creates files readable and writable by the ownerand the group (that is, S_IRUSR, S_IWUSR, S_IRGRP and S_IWGRP; or octal mode0660 on historic UNIX systems).  The group ownership of created files isbased on the system and directory defaults, and is not further specifiedby m4_db.])m4_tag(Temporary backing files, [dnlIf an unnamed database is created and the cache is too small to holdthe database in memory, m4_db will create a temporary physical file toenable it to page the database to disk as needed.  In this case,environment variables such as m4_bold(TMPDIR) may be used to specifythe location of that temporary file.  Although temporary backing filesare created readable and writable by the owner only (S_IRUSR andS_IWUSR, or octal mode 0600 on historic UNIX systems), some filesystemsmay not sufficiently protect temporary files created in randomdirectories from improper access.  To be absolutely safe, applicationsstoring sensitive data in unnamed databases should use them4_ref(dbenv_set_tmp_dir) method to specify a temporary directory withknown permissions.])m4_tagendm4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -