vfs_scannedonly − Ensures that only files that have been scanned for viruses are visible and accessible to the end user.
vfs objects = scannedonly
This VFS module is part of the samba(8) suite.
The vfs_scannedonly VFS module ensures that only files that have been scanned for viruses are visible and accessible to the end user. If non−scanned files are found an anti−virus scanning daemon is notified. The anti−virus scanning daemon is not part of the Samba suite.
Scannedonly comes in two parts: a samba vfs module and (one or more) daemons. The daemon scans files. If a certain file is clean, a second file is created with prefix .scanned:. The Samba module simply looks if such a .scanned: file exists, and is newer than the pertinent file. If this is the case, the file is shown to the user. If this is not the case, the file is not returned in a directory listing (configurable), and cannot be opened (configurable). The Samba vfs module will notify the daemon to scan this file.
So what happens for the user in the default configuration. The first time a directory is listed, it shows files as 'file is being scanned for viruses, but after the first time all files are shown. There is a utility scannedonly_prescan that can help you to prescan all directories. When new files are written the daemon is notified immediately after the file is complete.
If a virus is found by the daemon, a file with a warning message is created in the directory of the user, a warning is sent to the logs, and the file is renamed to have prefix .virus:. Files with the .virus: prefix are never shown to the user and all access is denied.
This module is stackable.
vfs_scannedonly relies on a anti−virus scanning daemon that listens on the scannedonly socket (unix domain socket or UDP socket).
scannedonly:domain_socket = True
Whether to use a unix domain socket or not (false reverts to use udp)
scannedonly:socketname = /var/lib/scannedonly/scan
The location of the unix domain socket to connect to
scannedonly:portnum = 2020
The udp port number to connect to
scannedonly:scanhost = localhost
When using UDP the host that runs the scanning daemon (this host needs access to the files!)
scannedonly:show_special_files = True
Whether sockets, devices and fifo's (all not scanned for viruses) should be visible to the user
scannedonly:rm_hidden_files_on_rmdir = True
Whether files that are not visible (.scanned: files, .failed: files and .virus: files) should be deleted if the user tries to remove the directory. If false, the user will get the "directory is not empty" error.
scannedonly:hide_nonscanned_files = True
If false, all non−scanned files are visible in directory listings. If such files are found in a directory listing the scanning daemon is notified that scanning is required. Access to non−scanned files is still denied (see scannedonly:allow_nonscanned_files).
scannedonly:scanning_message = is being scanned for viruses
If non−scanned files are hidden (if scannedonly:hide_nonscanned_files = True), a fake 0 byte file is shown. The filename is the original filename with the message as suffix.
scannedonly:recheck_time_open = 50
If a non−scanned file is opened, the vfs module will wait recheck_tries_open times for recheck_time_open milliseconds for the scanning daemon to create a .scanned: file. For small files that are scanned by the daemon within the time (tries * time) the behavior will be just like on−access scanning.
scannedonly:recheck_tries_open = 100
scannedonly:recheck_time_readdir = 50
If a non−scanned file is in a directory listing the vfs module notifies the daemon (once for all files that need scanning in that directory), and waits recheck_tries_readdir times for recheck_time_readdir milliseconds. Only used when hide_nonscanned_files is false.
scannedonly:recheck_tries_readdir = 20
scannedonly:allow_nonscanned_files = False
Allow access to non−scanned files. The daemon is notified, however, and special files such as .scanned: files. .virus: files and .failed: files are not listed.
Enable anti−virus scanning:
vfs objects = scannedonly
scannedonly:hide_nonscanned_files = False
This is not true on−access scanning. However, it is very fast for files that have been scanned already.
This man page is correct for version 4.0.0 of the Samba suite.
The original Samba software and related utilities were created by Andrew Tridgell. Scannedonly was developed for Samba by Olivier Sessink. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.